From 3a3dd52161cce37f57937ee426045764833461be Mon Sep 17 00:00:00 2001 From: wu58430 Date: Wed, 20 Dec 2023 11:33:04 +0800 Subject: [PATCH] eeproom --- driver/eeprom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/eeprom.c b/driver/eeprom.c index 1238e39..8aba961 100644 --- a/driver/eeprom.c +++ b/driver/eeprom.c @@ -39,7 +39,7 @@ void EEPROM_ReadBuffer(uint32_t Address, void *pBuffer, uint8_t Size) { I2C_Stop(); } else{ I2C_Start(); - uint8_t P0 = (StartAddr / 0x10000) << 1; + uint8_t P0 = (Address / 0x10000) << 1; I2C_Write(0xA4|P0);