mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-04 14:07:36 +00:00
Changed variable type for callsign
This commit is contained in:
parent
6e4a7f5e9b
commit
991065fb0c
3 changed files with 6 additions and 6 deletions
|
|
@ -23,14 +23,14 @@
|
|||
#include <cassert>
|
||||
#include <cstring>
|
||||
|
||||
CNextion::CNextion(const char* callsign, unsigned int dmrid, const std::string& port, unsigned int brightness) :
|
||||
CNextion::CNextion(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);
|
||||
}
|
||||
|
||||
|
|
@ -62,7 +62,7 @@ void CNextion::setIdle()
|
|||
sendCommand("page MMDVM");
|
||||
|
||||
char command[30];
|
||||
::sprintf(command, "t0.txt=\"%-6s / %u\"", m_callsign, m_dmrid);
|
||||
::sprintf(command, "t0.txt=\"%-6s / %u\"", m_callsign.c_str(), m_dmrid);
|
||||
|
||||
sendCommand(command);
|
||||
sendCommand("t1.txt=\"MMDVM IDLE\"");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue