From b9f9566158fa9f2b795c3483a0a7149b9b77ab86 Mon Sep 17 00:00:00 2001 From: Krzysiek Egzmont Date: Wed, 18 Oct 2023 16:59:30 +0200 Subject: [PATCH] Additional fix for RSSI calibration --- board.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/board.c b/board.c index 8bf6615..b907cc5 100644 --- a/board.c +++ b/board.c @@ -748,9 +748,9 @@ void BOARD_EEPROM_LoadCalibration(void) memcpy(gEEPROM_RSSI_CALIB[5], gEEPROM_RSSI_CALIB[3], 8); memcpy(gEEPROM_RSSI_CALIB[6], gEEPROM_RSSI_CALIB[3], 8); - // 8 * 16-bit values - EEPROM_ReadBuffer(0x1EC0, gEEPROM_RSSI_CALIB[0], 8); - EEPROM_ReadBuffer(0x1EC8, gEEPROM_RSSI_CALIB[1], 8); + EEPROM_ReadBuffer(0x1EC8, gEEPROM_RSSI_CALIB[0], 8); + memcpy(gEEPROM_RSSI_CALIB[1], gEEPROM_RSSI_CALIB[0], 8); + memcpy(gEEPROM_RSSI_CALIB[2], gEEPROM_RSSI_CALIB[0], 8); EEPROM_ReadBuffer(0x1F40, gBatteryCalibration, 12); if (gBatteryCalibration[0] >= 5000)