From 3982d7f7ff00ffa715a93f7f9bcbf4b02940d068 Mon Sep 17 00:00:00 2001 From: Thomas Leister Date: Sun, 23 Jan 2022 17:48:13 +0100 Subject: [PATCH] Update LoRaMAC submodule from version 4.5.1 to 4.6.0 Because why not? Use an updated version with possible version fixes. eeprom-board.c has been adapted to reflect the changed function return types. --- lib/LoRaMac-node | 2 +- src/boards/rp2040/eeprom-board.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/LoRaMac-node b/lib/LoRaMac-node index 6ff4561..fe8247e 160000 --- a/lib/LoRaMac-node +++ b/lib/LoRaMac-node @@ -1 +1 @@ -Subproject commit 6ff45615658c47029098a9fec741b05ca9a67f57 +Subproject commit fe8247e2b84101fe701531a5f9ef14f035743af4 diff --git a/src/boards/rp2040/eeprom-board.c b/src/boards/rp2040/eeprom-board.c index 069a59b..7e2c3bb 100644 --- a/src/boards/rp2040/eeprom-board.c +++ b/src/boards/rp2040/eeprom-board.c @@ -24,18 +24,18 @@ void EepromMcuInit() memcpy(eeprom_write_cache, EEPROM_ADDRESS, sizeof(eeprom_write_cache)); } -uint8_t EepromMcuReadBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) +LmnStatus_t EepromMcuReadBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) { memcpy(buffer, eeprom_write_cache + addr, size); - return SUCCESS; + return LMN_STATUS_OK; } -uint8_t EepromMcuWriteBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) +LmnStatus_t EepromMcuWriteBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) { memcpy(eeprom_write_cache + addr, buffer, size); - return SUCCESS; + return LMN_STATUS_OK; } uint8_t EepromMcuFlush() @@ -48,4 +48,4 @@ uint8_t EepromMcuFlush() flash_range_program(EEPROM_OFFSET, eeprom_write_cache, sizeof(eeprom_write_cache)); BoardCriticalSectionEnd(&mask); -} +} \ No newline at end of file