aqhome-tool: fixed a bug.

This commit is contained in:
Martin Preuss
2025-03-21 20:54:41 +01:00
parent c808f8640e
commit 0b946c5748

View File

@@ -396,7 +396,7 @@ int _waitForFlashResponse(AQH_OBJECT *o, int timeoutInSeconds)
result=AQH_FlashResponseMessage_GetCode(nodeMsg);
AQH_Message_free(nodeMsg);
if (AQH_FlashResponseMessage_GetCode(nodeMsg)!=0) {
if (result!=0) {
DBG_ERROR(NULL, "Negative FLASH_RESPONSE received (%d)", result);
return GWEN_ERROR_GENERIC;
}