From 1da4c3b22418c8a87062e46fc716028e84d8ba07 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 26 Apr 2024 12:43:21 +0200 Subject: [PATCH] Add _ISMAS_TEST_TRIGGER --- UpdatePTUDevCtrl/worker.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/UpdatePTUDevCtrl/worker.h b/UpdatePTUDevCtrl/worker.h index d9e83ee..ce7d7d9 100644 --- a/UpdatePTUDevCtrl/worker.h +++ b/UpdatePTUDevCtrl/worker.h @@ -26,11 +26,21 @@ #define SERIAL_PORT "ttyUSB0" #endif -#define _ISMAS_DONE "U0001" // 100% -#define _ISMAS_SET_WAIT_OK "U0002" // empty WAIT-button ("") +/* + Note: + ! After U0002 immer ein CMD_SENDVERSION + ! Only U0002 and U0003 finish the Update process. + ! U0001: Update finished but not activated + ! U0002: Update finished and activated + ! U0003: Update finished but FAILed. + */ + +#define _ISMAS_DONE "U0001" // 100%, Check: Resultcode: 0 +#define _ISMAS_SET_WAIT_OK "U0002" // empty WAIT-button (""), ResultCode: 0 #define _ISMAS_FAILURE "U0003" // FAIL -#define _ISMAS_CONTINUE "U0010" // %-values +#define _ISMAS_CONTINUE "U0010" // %-values: Update laeuft, Resultcodes entsprechend laufender Schritt #define _ISMAS_RESET_WAIT "ISMAS" // reset WAIT-button to "WAIT" +#define _ISMAS_TEST_TRIGGER "U0099" // check the WAIT-button #define _STARTED (1) #define _CHECK_ISMAS_TRIGGER (2)