diff --git a/src/sendWRcmd.cpp b/src/sendWRcmd.cpp index ce1ec00..1106652 100644 --- a/src/sendWRcmd.cpp +++ b/src/sendWRcmd.cpp @@ -602,7 +602,7 @@ bool longFDcmd_set(uint8_t nextWrCmd, uint8_t nextRdCmd, uint8_t blockNum, uint8 uint8_t nn; if (p_longFDcmdsInQueue>=FDLONG_STACKDEPTH) { - qDebug() << "cannot save cmd because stack is full"; + qCritical() << "cannot save cmd because stack is full"; return false; // not possible } longFDwrCmd[p_longFDcmdsInQueue]=nextWrCmd; @@ -613,6 +613,7 @@ bool longFDcmd_set(uint8_t nextWrCmd, uint8_t nextRdCmd, uint8_t blockNum, uint8 longFDpara[p_longFDcmdsInQueue][nn]=data[nn]; p_longFDcmdsInQueue++; + return true; // ok, will be sent }