From cc65fb8f0bd272bf255f877eea66d48e0cf64a9a Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Fri, 8 May 2026 00:31:49 +0200 Subject: [PATCH] c03: debug dialog: DlgNodeValueId. --- avr/devices/c03/main/a_c03.asm | 38 ++++++++++++++++++++++++++++++++-- avr/devices/c03/main/main.asm | 1 + 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/avr/devices/c03/main/a_c03.asm b/avr/devices/c03/main/a_c03.asm index 620e175..64837f8 100644 --- a/avr/devices/c03/main/a_c03.asm +++ b/avr/devices/c03/main/a_c03.asm @@ -165,7 +165,7 @@ c03AppCreateWinClimate_ret: ; @clobbers !X c03AppCreateWinDebug: -#if 1 +#if 0 push yl push yh push yl @@ -188,7 +188,9 @@ c03AppCreateWinDebug: sec c03AppCreateWinDebug_ret: ret -#else +#endif + +#if 0 push yl push yh ldi r20, LOW(RESSOURCE_TXT_LIGHTSETTINGS) @@ -207,6 +209,38 @@ c03AppCreateWinDebug_ret: c03AppCreateWinDebug_ret: ret #endif + +#if 1 + push yl + push yh + + ldi r20, LOW(RESSOURCE_TXT_MOTIONSENSOR1) + ldi r21, HIGH(RESSOURCE_TXT_MOTIONSENSOR1) + bigcall DlgNodeValueId_new + mov xl, yl + mov xh, yh + + push xl + push xh + ldi xl, 5 + clr xh + bigcall DlgNodeValueId_SetValueId + pop xh + pop xl + sec + pop yh + pop yl + brcc c03AppCreateWinDebug_ret + std Y+C03APP_OFFS_WDEBUG_LO, xl + std Y+C03APP_OFFS_WDEBUG_HI, xh + + ldi r16, C03APP_SEL_DEBUG + rcall c03AppSetTargetAndSelector + sec +c03AppCreateWinDebug_ret: + ret +#endif + ; @end diff --git a/avr/devices/c03/main/main.asm b/avr/devices/c03/main/main.asm index a70277f..a538f78 100644 --- a/avr/devices/c03/main/main.asm +++ b/avr/devices/c03/main/main.asm @@ -539,6 +539,7 @@ GUI_MODULE_BEGIN: .include "modules/lcd2/gui/base/cdialog.asm" .include "modules/lcd2/gui/aqhome/sensorwatch.asm" .include "modules/lcd2/gui/aqhome/lightsettings.asm" +.include "modules/lcd2/gui/aqhome/d_nodevalueid.asm" .include "modules/lcd2/gui/screensavers/simple.asm" GUI_MODULE_END: .equ MODULE_SIZE_GUI = GUI_MODULE_END-GUI_MODULE_BEGIN