Simplify the OLED text creation code.

This commit is contained in:
Jonathan Naylor
2021-04-11 21:49:20 +01:00
parent 4f3e6935d2
commit 639caa03ee
4 changed files with 35 additions and 44 deletions
+3
View File
@@ -77,6 +77,9 @@ void CI2C3::init()
uint8_t CI2C3::write(uint8_t addr, const uint8_t* data, uint16_t length)
{
DEBUG2("OLED Data", addr);
DEBUG_DUMP(data, length);
// Wait for the I2C transmitter to become free
if (waitISRFlagsSet(I2C_ISR_BUSY))
return 6U;