Process data from display to MMDVMHost (serial pass-through & transparent data)

also taking into account the sendFrameType parameter
Do not control Nextion backlight when active brightness is zero
This commit is contained in:
root
2018-09-13 20:35:12 +02:00
parent ea086676a7
commit 574343c439
4 changed files with 74 additions and 27 deletions

View File

@@ -337,7 +337,9 @@ int CMMDVMHost::run()
LogWarning("Could not open the Transparent data socket, disabling");
delete transparentSocket;
transparentSocket = NULL;
sendFrameType=0;
}
m_modem->setTransparentDataParams(sendFrameType);
}
if (m_conf.getCWIdEnabled()) {
@@ -887,7 +889,7 @@ int CMMDVMHost::run()
unsigned int port = 0U;
len = transparentSocket->read(data, 200U, address, port);
if (len > 0U)
m_modem->writeTransparentData(data, len, sendFrameType);
m_modem->writeTransparentData(data, len);
}
unsigned int ms = stopWatch.elapsed();