network: write new address into EEPROM.

This commit is contained in:
Martin Preuss
2025-04-26 11:10:23 +02:00
parent 155fc9a743
commit 833819f713

View File

@@ -184,6 +184,16 @@ appNetworkHandleStateHaveAddress2:
std Y+NET_IFACE_OFFS_STATUS, r16
ldd r16, Y+NET_IFACE_OFFS_RANGE_BEGIN ; set interface address
std Y+NET_IFACE_OFFS_ADDRESS, r16
in r15, SREG
push r15
cli
ldi xl, LOW(EEPROM_OFFS_COMADDR)
ldi xh, HIGH(EEPROM_OFFS_COMADDR)
rcall Utils_WriteEepromIncr ; write address to EEPROM
pop r15
out SREG, r15
ret