[24AA02E48 EEPROM] hotfix 1
This commit is contained in:
parent
5f23a03009
commit
c6f2048d22
|
@ -15,7 +15,7 @@ void EEPROM_24AA02E48_run_test(void)
|
||||||
// write the Address Pointer register
|
// write the Address Pointer register
|
||||||
uint8_t data_buffer[13];
|
uint8_t data_buffer[13];
|
||||||
data_buffer[12] = '\0';
|
data_buffer[12] = '\0';
|
||||||
data_buffer[0] = 0x00;
|
data_buffer[0] = 0xF4;
|
||||||
|
|
||||||
for (size_t t = 0; t < 5; t++) {
|
for (size_t t = 0; t < 5; t++) {
|
||||||
op_result = HAL_I2C_Master_Transmit(&hi2c1, 0xA0, data_buffer, 1, 2000);
|
op_result = HAL_I2C_Master_Transmit(&hi2c1, 0xA0, data_buffer, 1, 2000);
|
||||||
|
@ -88,7 +88,7 @@ void EEPROM_24AA02E48_run_test(void)
|
||||||
DISPLAY_SET_CURSOR(1, 0);
|
DISPLAY_SET_CURSOR(1, 0);
|
||||||
display_write_data_byte('0' + err_count / 10 % 10);
|
display_write_data_byte('0' + err_count / 10 % 10);
|
||||||
display_write_data_byte('0' + err_count % 10);
|
display_write_data_byte('0' + err_count % 10);
|
||||||
display_write_data_seq('E ');
|
display_write_data_seq("E ");
|
||||||
display_write_data_seq(data_buffer);
|
display_write_data_seq(data_buffer);
|
||||||
} else {
|
} else {
|
||||||
DISPLAY_SET_CURSOR(1, 1);
|
DISPLAY_SET_CURSOR(1, 1);
|
||||||
|
|
Loading…
Reference in New Issue