forked from gatsby/df_datalink
bugfix: correct assert condition.
This commit is contained in:
@@ -46,7 +46,8 @@ uint8_t GetReadable(PINGPONG ctrllor);
|
|||||||
|
|
||||||
inline uint8_t GetWritable(PINGPONG ctrllor)
|
inline uint8_t GetWritable(PINGPONG ctrllor)
|
||||||
{
|
{
|
||||||
ASSERT(ctrllor.wBusy != BUFF_NONE);
|
// Allow only one write.
|
||||||
|
ASSERT(ctrllor.wBusy == BUFF_NONE);
|
||||||
if (ctrllor.rBusy == BUFF_NONE)
|
if (ctrllor.rBusy == BUFF_NONE)
|
||||||
return ((ctrllor.latest == BUFF_B) ? BUFF_A : BUFF_B);
|
return ((ctrllor.latest == BUFF_B) ? BUFF_A : BUFF_B);
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user