mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-06 06:53:42 +00:00
Clean up the I2C controller code.
This commit is contained in:
parent
303a0163d3
commit
0b185a0900
7 changed files with 38 additions and 63 deletions
|
|
@ -1238,10 +1238,13 @@ bool CMMDVMHost::createModem()
|
|||
|
||||
LogInfo("Modem Parameters");
|
||||
LogInfo(" Port: %s", port.c_str());
|
||||
#if defined(__linux__)
|
||||
LogInfo(" Protocol: %s", protocol.c_str());
|
||||
if (protocol == "i2c")
|
||||
LogInfo(" I2C Address: %02X", address);
|
||||
LogInfo(" Speed: %u", speed);
|
||||
else
|
||||
#endif
|
||||
LogInfo(" Speed: %u", speed);
|
||||
LogInfo(" RX Invert: %s", rxInvert ? "yes" : "no");
|
||||
LogInfo(" TX Invert: %s", txInvert ? "yes" : "no");
|
||||
LogInfo(" PTT Invert: %s", pttInvert ? "yes" : "no");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue