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
@@ -2005,6 +2005,9 @@ void CSerialPort::writeDebug(const char* text, int16_t n1, int16_t n2, int16_t n
void CSerialPort::writeDebugDump(const uint8_t* data, uint16_t length)
{
if (length > 500U)
length = 500U;
uint8_t reply[512U];
reply[0U] = MMDVM_FRAME_START;