Skip to content

Commit

Permalink
Update eeprom.c
Browse files Browse the repository at this point in the history
  • Loading branch information
losehu authored Aug 6, 2024
1 parent be710e4 commit 2a92ba9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver/eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@

void EEPROM_ReadBuffer(uint32_t Address, void *pBuffer, uint8_t Size) {

// __disable_irq();
__disable_irq();
I2C_Start();

uint8_t IIC_ADD = 0xA0 | Address >> 15 &14;
Expand All @@ -114,7 +114,7 @@ void EEPROM_ReadBuffer(uint32_t Address, void *pBuffer, uint8_t Size) {
I2C_ReadBuffer(pBuffer, Size);

I2C_Stop();
// __enable_irq();
__enable_irq();

}

Expand Down

0 comments on commit 2a92ba9

Please sign in to comment.