Skip to content

Commit

Permalink
These Are Conflict Changes - Proposed AG4OJ
Browse files Browse the repository at this point in the history
Please over look these changes to help stabilize the new M17 Mode additions.
  • Loading branch information
AG4OJ authored Nov 21, 2021
1 parent b1d5973 commit af8d1f4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Nextion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ void CNextion::writeM17Int(const char* source, const char* dest, const char* typ

if (m_mode != MODE_M17) {
sendCommand("page M17");
sendCommandAction(6U);
sendCommandAction(8U);
}

char text[30U];
Expand All @@ -843,11 +843,11 @@ void CNextion::writeM17Int(const char* source, const char* dest, const char* typ

::sprintf(text, "t0.txt=\"%s %.10s\"", type, source);
sendCommand(text);
sendCommandAction(122U);
sendCommandAction(142U);

::sprintf(text, "t1.txt=\"%s\"", dest);
sendCommand(text);
sendCommandAction(123U);
sendCommandAction(143U);

m_clockDisplayTimer.stop();

Expand All @@ -867,7 +867,7 @@ void CNextion::writeM17RSSIInt(unsigned char rssi)
char text[25U];
::sprintf(text, "t2.txt=\"-%udBm\"", m_rssiAccum1 / M17_RSSI_COUNT);
sendCommand(text);
sendCommandAction(124U);
sendCommandAction(144U);
m_rssiAccum1 = 0U;
m_rssiCount1 = 0U;
}
Expand All @@ -882,7 +882,7 @@ void CNextion::writeM17BERInt(float ber)
char text[25U];
::sprintf(text, "t3.txt=\"%.1f%%\"", m_berAccum1 / float(M17_BER_COUNT));
sendCommand(text);
sendCommandAction(125U);
sendCommandAction(145U);
m_berAccum1 = 0.0F;
m_berCount1 = 0U;
}
Expand All @@ -891,7 +891,7 @@ void CNextion::writeM17BERInt(float ber)
void CNextion::clearM17Int()
{
sendCommand("t0.txt=\"Listening\"");
sendCommandAction(121U);
sendCommandAction(141U);
sendCommand("t1.txt=\"\"");
sendCommand("t2.txt=\"\"");
sendCommand("t3.txt=\"\"");
Expand Down

0 comments on commit af8d1f4

Please sign in to comment.