Let the clock run on when transmitting CW

This commit is contained in:
phl0 2016-09-15 16:57:10 +02:00
parent 400659e3f1
commit 148b640397
No known key found for this signature in database
GPG Key ID: 48EA1E640798CA9A
1 changed files with 2 additions and 2 deletions

View File

@ -237,7 +237,7 @@ void CNextion::writeCWInt()
{
sendCommand("t1.txt=\"Sending CW Ident\"");
m_clockDisplayTimer.stop();
m_clockDisplayTimer.start();
m_mode = MODE_CW;
}
@ -251,7 +251,7 @@ void CNextion::clockInt(unsigned int ms)
{
// Update the clock display in IDLE mode every 400ms
m_clockDisplayTimer.clock(ms);
if (m_displayClock && m_mode == MODE_IDLE && m_clockDisplayTimer.isRunning() && m_clockDisplayTimer.hasExpired()) {
if (m_displayClock && (m_mode == MODE_IDLE || m_mode == MODE_CW) && m_clockDisplayTimer.isRunning() && m_clockDisplayTimer.hasExpired()) {
time_t currentTime;
struct tm *Time;
::time(&currentTime); // Get the current time