mirror of
https://github.com/akuker/RASCSI.git
synced 2024-05-28 09:41:33 +00:00
Add assertion
This commit is contained in:
parent
aa4b4ee102
commit
d5998c4254
|
@ -38,11 +38,10 @@ bool GPIOBUS::Init(mode_e mode)
|
|||
//---------------------------------------------------------------------------
|
||||
int GPIOBUS::CommandHandShake(vector<uint8_t> &buf)
|
||||
{
|
||||
GPIO_FUNCTION_TRACE
|
||||
// Only works in TARGET mode
|
||||
if (actmode != mode_e::TARGET) {
|
||||
return 0;
|
||||
}
|
||||
assert(actmode == mode_e::TARGET);
|
||||
|
||||
GPIO_FUNCTION_TRACE
|
||||
|
||||
DisableIRQ();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user