diff --git a/avr/devices/all/modules_include.asm b/avr/devices/all/modules_include.asm index dd3235c..378bd66 100644 --- a/avr/devices/all/modules_include.asm +++ b/avr/devices/all/modules_include.asm @@ -154,9 +154,6 @@ #ifdef MODULES_BEEPER_SIMPLE .include "modules/beeper_simple/main.asm" - #ifdef MODULES_NETWORK - .include "modules/beeper_simple/recv.asm" - #endif #endif #ifdef MODULES_TWI_MASTER diff --git a/avr/devices/all/modules_msg.asm b/avr/devices/all/modules_msg.asm index 0a79a7c..ee8dfc3 100644 --- a/avr/devices/all/modules_msg.asm +++ b/avr/devices/all/modules_msg.asm @@ -29,12 +29,6 @@ modulesOnPacketReceived: #endif #endif -#ifdef MODULES_BEEPER_SIMPLE - #ifdef MODULES_NETWORK - bigcall BeeperSimple_OnPacketReceived - #endif -#endif - #ifdef MODULES_DS3231 #ifdef MODULES_NETWORK bigcall Ds3231_OnPacketReceived diff --git a/avr/modules/beeper_simple/recv.asm b/avr/modules/beeper_simple/recv.asm deleted file mode 100644 index e4fb904..0000000 --- a/avr/modules/beeper_simple/recv.asm +++ /dev/null @@ -1,41 +0,0 @@ -; *************************************************************************** -; copyright : (C) 2026 by Martin Preuss -; email : martin@libchipcard.de -; -; *************************************************************************** -; * This file is part of the project "AqHome". * -; * Please see toplevel file COPYING of that project for license details. * -; *************************************************************************** - - -; --------------------------------------------------------------------------- -; @routine BeeperSimple_OnPacketReceived @global -; -; @clobbers any, -X - -BeeperSimple_OnPacketReceived: - adiw xh:xl, NETMSG_OFFS_CMD ; command - ld r16, X - sbiw xh:xl, NETMSG_OFFS_CMD - cpi r16, NETMSG_CMD_VALUE_SET - breq BeeperSimple_OnPacketReceived_set - clc ; unexpected msg - ret -BeeperSimple_OnPacketReceived_set: - rcall NETMSG_ValueRead ; (none) - cpi r17, VALUE_ID_BEEPERSIMPLE_TIMING - breq BeeperSimple_OnPacketReceived_setTiming - clc - ret -BeeperSimple_OnPacketReceived_setTiming: - rcall BeeperSimple_SetTiming -BeeperSimple_OnPacketReceived_sendAck: - push xl - push xh - ldi r23, NETMSG_CMD_VALUE_SET_ACK - bigcall Main_SendValueResponse - pop xh - pop xl - sec - ret -; @end