debugging
This commit is contained in:
parent
6719a2274d
commit
594f0c5d68
@ -94,6 +94,8 @@ void eepromRead(uint16_t addr, uint8_t *buf, uint8_t len) {
|
|||||||
|
|
||||||
t_spiMsg rxMsg;
|
t_spiMsg rxMsg;
|
||||||
|
|
||||||
|
coloredMsg(LOG_YELLOW, "len: %d", len);
|
||||||
|
|
||||||
__EEPROM_CS(LOW);
|
__EEPROM_CS(LOW);
|
||||||
HAL_SPI_TransmitReceive(&eepromSpi, txMsg.b, rxMsg.b, ((uint16_t)(len+3)), HAL_MAX_DELAY);
|
HAL_SPI_TransmitReceive(&eepromSpi, txMsg.b, rxMsg.b, ((uint16_t)(len+3)), HAL_MAX_DELAY);
|
||||||
__EEPROM_CS(HIGH);
|
__EEPROM_CS(HIGH);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user