mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 03:15:37 +00:00
Replace unreachable RX/TX log EEPROM mapping with documentation comment
This commit is contained in:
1 parent
374e52c4d1
commit
fb1360cce2
3 files changed
+7
-13
No files matched your search
+1
-5
@@ -15,7 +15,6 @@
|
||||
#include "driver/py25q16.h"
|
||||
#include "driver/st7565.h"
|
||||
#include "external/printf/printf.h"
|
||||
#include "frequencies.h"
|
||||
#include "misc.h"
|
||||
#include "settings.h"
|
||||
#include "ui/helper.h"
|
||||
@@ -610,7 +609,7 @@ static void RXTX_LOG_AdvanceFlashAddress(void)
|
||||
gNextFlashAddress = RXTX_LOG_FLASH_BASE;
|
||||
}
|
||||
|
||||
static uint32_t RXTX_LOG_WriteEntry(const RXTX_LogEntry_t *src)
|
||||
static void RXTX_LOG_WriteEntry(const RXTX_LogEntry_t *src)
|
||||
{
|
||||
RXTX_LogFlashEntry_t entry;
|
||||
uint8_t commit = RXTX_LOG_ENTRY_COMMIT;
|
||||
@@ -621,12 +620,9 @@ static uint32_t RXTX_LOG_WriteEntry(const RXTX_LogEntry_t *src)
|
||||
|
||||
RXTX_LOG_PrepareNextSlot();
|
||||
|
||||
const uint32_t address = gNextFlashAddress;
|
||||
PY25Q16_WriteBuffer(gNextFlashAddress, &entry, sizeof(entry), false);
|
||||
PY25Q16_WriteBuffer(gNextFlashAddress + sizeof(entry) - 1u, &commit, 1, false);
|
||||
RXTX_LOG_AdvanceFlashAddress();
|
||||
|
||||
return address;
|
||||
}
|
||||
|
||||
static void RXTX_LOG_WriteSessionMarker(void)
|
||||
|
||||
@@ -17,11 +17,6 @@
|
||||
|
||||
#define RXTX_LOG_VISIBLE_COUNT 512
|
||||
|
||||
typedef enum {
|
||||
RXTX_LOG_DIR_RX = 0,
|
||||
RXTX_LOG_DIR_TX = 1,
|
||||
} RXTX_LogDirection_t;
|
||||
|
||||
// Field order mirrors RXTX_LogFlashEntry_t (rxtx_log.c) so both layouts
|
||||
// match byte-for-byte up to and including flags, copied in one pass.
|
||||
// The channel name is not stored: it is resolved from `channel` at display
|
||||
|
||||
Reference in new issue
Block a user