debugging
This commit is contained in:
		@@ -74,14 +74,16 @@ void eepromWrite(uint16_t addr, uint8_t *buf, uint8_t len) {
 | 
			
		||||
  memcpy(msg.s.data, buf, len);
 | 
			
		||||
 | 
			
		||||
  uint8_t writeEnable = EEPROM_WREN;
 | 
			
		||||
 | 
			
		||||
coloredLog(LOG_HIGH, "1");
 | 
			
		||||
  __EEPROM_CS(LOW);
 | 
			
		||||
  HAL_SPI_Transmit(&eepromSpi, &writeEnable, 1, HAL_MAX_DELAY);
 | 
			
		||||
  __EEPROM_CS(HIGH);
 | 
			
		||||
coloredLog(LOG_HIGH, "2");
 | 
			
		||||
 | 
			
		||||
  __EEPROM_CS(LOW);
 | 
			
		||||
  HAL_SPI_Transmit(&eepromSpi, msg.b, ((uint16_t)(len+3)), HAL_MAX_DELAY);
 | 
			
		||||
  __EEPROM_CS(HIGH);
 | 
			
		||||
coloredLog(LOG_HIGH, "3");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void eepromRead(uint16_t addr, uint8_t *buf, uint8_t len) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user