Changed type of callsign variable for TFTSerial

This commit is contained in:
phl0
2016-04-21 12:09:54 +02:00
parent f6c7ee79c6
commit a2413f30db
3 changed files with 6 additions and 6 deletions

View File

@@ -44,14 +44,14 @@ const unsigned char FONT_LARGE = 3U;
// x = 0 to 159, y = 0 to 127 - Landscape
// x = 0 to 127, y = 0 to 159 - Portrait
CTFTSerial::CTFTSerial(const char* callsign, unsigned int dmrid, const std::string& port, unsigned int brightness) :
CTFTSerial::CTFTSerial(const std::string& callsign, unsigned int dmrid, const std::string& port, unsigned int brightness) :
m_callsign(callsign),
m_dmrid(dmrid),
m_serial(port, SERIAL_9600),
m_brightness(brightness),
m_mode(MODE_IDLE)
{
assert(callsign != NULL);
assert(callsign.c_str() != NULL);
assert(brightness >= 0U && brightness <= 100U);
}
@@ -91,7 +91,7 @@ void CTFTSerial::setIdle()
displayBitmap(0U, 0U, "MMDVM_sm.bmp");
char text[30];
::sprintf(text, "%-6s / %u", m_callsign, m_dmrid);
::sprintf(text, "%-6s / %u", m_callsign.c_str(), m_dmrid);
gotoPosPixel(18U, 55U);
displayText(text);