c03: debug dialog: DlgNodeValueId.

This commit is contained in:
Martin Preuss
2026-05-08 00:31:49 +02:00
parent 245181112a
commit cc65fb8f0b
2 changed files with 37 additions and 2 deletions

View File

@@ -165,7 +165,7 @@ c03AppCreateWinClimate_ret:
; @clobbers !X ; @clobbers !X
c03AppCreateWinDebug: c03AppCreateWinDebug:
#if 1 #if 0
push yl push yl
push yh push yh
push yl push yl
@@ -188,7 +188,9 @@ c03AppCreateWinDebug:
sec sec
c03AppCreateWinDebug_ret: c03AppCreateWinDebug_ret:
ret ret
#else #endif
#if 0
push yl push yl
push yh push yh
ldi r20, LOW(RESSOURCE_TXT_LIGHTSETTINGS) ldi r20, LOW(RESSOURCE_TXT_LIGHTSETTINGS)
@@ -207,6 +209,38 @@ c03AppCreateWinDebug_ret:
c03AppCreateWinDebug_ret: c03AppCreateWinDebug_ret:
ret ret
#endif #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 ; @end

View File

@@ -539,6 +539,7 @@ GUI_MODULE_BEGIN:
.include "modules/lcd2/gui/base/cdialog.asm" .include "modules/lcd2/gui/base/cdialog.asm"
.include "modules/lcd2/gui/aqhome/sensorwatch.asm" .include "modules/lcd2/gui/aqhome/sensorwatch.asm"
.include "modules/lcd2/gui/aqhome/lightsettings.asm" .include "modules/lcd2/gui/aqhome/lightsettings.asm"
.include "modules/lcd2/gui/aqhome/d_nodevalueid.asm"
.include "modules/lcd2/gui/screensavers/simple.asm" .include "modules/lcd2/gui/screensavers/simple.asm"
GUI_MODULE_END: GUI_MODULE_END:
.equ MODULE_SIZE_GUI = GUI_MODULE_END-GUI_MODULE_BEGIN .equ MODULE_SIZE_GUI = GUI_MODULE_END-GUI_MODULE_BEGIN