Merge pull request #195 from logicog/fix_config_reading

Fix reading configuration over flash block boundaries
This commit is contained in:
René van Dorst
2026-04-17 11:46:03 +02:00
committed by GitHub
2 changed files with 42 additions and 15 deletions
+5
View File
@@ -45,6 +45,11 @@ extern __xdata uint8_t sbuf[SBUF_SIZE];
// Size of the flash buffer used for writing to flash, must be a multiple of the flash page size (0x100)
#define FLASH_BUF_SIZE 512
// Errors for commands
#define ERR_OK 0
#define ERR_TOO_MANY_ARGUMENTS 1
#define ERR_CMD_TOO_LONG 2
// For RX data, a propriatary RTL FRAME is inserted. Instead of 0x0800 for IPv4,
// the RTL_FRAME_TAG_ID is used as part of an 8-byte tag. When VLAN is activated,
// the VLAN tag is inserted after the RTL tag