From 0df67a3e0bbc83be21a4eeb7a916e46a8b1b7ae2 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Sat, 24 Jan 2026 01:03:52 +0100 Subject: [PATCH] avr: remove init code (sensorWatch now reads from eeprom). --- avr/devices/c03/main/main.asm | 45 +---------------------------------- 1 file changed, 1 insertion(+), 44 deletions(-) diff --git a/avr/devices/c03/main/main.asm b/avr/devices/c03/main/main.asm index f14c9f2..e8fdea1 100644 --- a/avr/devices/c03/main/main.asm +++ b/avr/devices/c03/main/main.asm @@ -243,49 +243,6 @@ test: ldi zh, HIGH(appC03*2) bigcall GuiApp_Init - ldi zl, LOW(winClimateSensor1*2) - ldi zh, HIGH(winClimateSensor1*2) - ; set source - ldi r16, SENSORWATCH_SIGNAL_SETSOURCE - clr r17 - ldi xl, 98 ; node address - ldi xh, 10 ; value 0x0a (SGP30_CO2) - bigcall OBJ_HandleSignal - - ; set warning limit - ldi r16, SENSORWATCH_SIGNAL_SETUPPERLIMWARN - clr r17 - ldi xl, LOW(800) - ldi xh, HIGH(800) - bigcall OBJ_HandleSignal - - ; set critical limit - ldi r16, SENSORWATCH_SIGNAL_SETUPPERLIMCRIT - clr r17 - ldi xl, LOW(2000) - ldi xh, HIGH(2000) - bigcall OBJ_HandleSignal - - - - ldi zl, LOW(winClimateSensor2*2) - ldi zh, HIGH(winClimateSensor2*2) - ; set source - ldi r16, SENSORWATCH_SIGNAL_SETSOURCE - clr r17 - ldi xl, 9 ; node address - ldi xh, 1 ; value 0x01 (SI7021_TEMP) - bigcall OBJ_HandleSignal - - - ldi zl, LOW(winClimateSensor3*2) - ldi zh, HIGH(winClimateSensor3*2) - ; set source - ldi r16, SENSORWATCH_SIGNAL_SETSOURCE - clr r17 - ldi xl, 9 ; node address - ldi xh, 2 ; value 0x02 (SI7021_HUM) - bigcall OBJ_HandleSignal ret @@ -320,9 +277,9 @@ test: ;.include "common/tree_t.asm" .include "common/eeprom_tlv.asm" -;.include "common/eeprom-r.asm" .include "common/divide.asm" +;.include "common/multiply.asm" .include "common/itoa.asm" .include "common/ressource.asm"