Устранить пересечение образа логгера с параметрами EEPROM и проверять размер BIN

This commit is contained in:
2026-10-01 20:20:00 +03:00
parent e3d43ef279
commit 419d6b17dc
7 changed files with 134 additions and 8 deletions

View File

@@ -200,7 +200,9 @@ static void modbus_exception(RS_DATA *rs_arr, unsigned int function, unsigned in
static int receive_ump(RS_DATA *rs_arr)
{
unsigned int address, value, saved, length, count, error;
uint16_t words[UMP_MAX_WORDS];
/* Main-loop only; encoded into the UART buffer before the next request.
* Keep the 124-word snapshot off the shared interrupt stack. */
static uint16_t words[UMP_MAX_WORDS];
address = (rs_arr->RS_Header[2] << 8) | rs_arr->RS_Header[3];
if (address < UMP_BASE) return 0;
value = (rs_arr->RS_Header[4] << 8) | rs_arr->RS_Header[5];