mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 14:35:31 +00:00
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:
parent
ea086676a7
commit
574343c439
4 changed files with 74 additions and 27 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue