diff --git a/interface/src/project/EMSESPDevicesForm.tsx b/interface/src/project/EMSESPDevicesForm.tsx index 225ce1de7..c4e81d615 100644 --- a/interface/src/project/EMSESPDevicesForm.tsx +++ b/interface/src/project/EMSESPDevicesForm.tsx @@ -73,47 +73,49 @@ class EMSESPDevicesForm extends Component - - - - Type - Brand - Model - Device ID - Product ID - Version - - - - {data.devices.sort(compareDevices).map(device => ( - - - {device.type} - - - {device.brand} - - - {device.name} - - - 0x{('00' + device.deviceid.toString(16).toUpperCase()).slice(-2)} - - - {device.productid} - - - {device.version} - + {!this.noData() && ( +
+ + + Type + Brand + Model + Device ID + Product ID + Version - ))} - -
+ + + {data.devices.sort(compareDevices).map(device => ( + + + {device.type} + + + {device.brand} + + + {device.name} + + + 0x{('00' + device.deviceid.toString(16).toUpperCase()).slice(-2)} + + + {device.productid} + + + {device.version} + + + ))} + + + )} {this.noData() && ( - No EMS devices found. + No EMS devices found. Check connection and for Tx errors. Try forcing a scan. ) diff --git a/interface/src/project/EMSESPStatus.ts b/interface/src/project/EMSESPStatus.ts index 7b4059990..34c7fbd2a 100644 --- a/interface/src/project/EMSESPStatus.ts +++ b/interface/src/project/EMSESPStatus.ts @@ -22,7 +22,7 @@ export const busStatus = ({ status }: EMSESPStatus) => { case busConnectionStatus.BUS_STATUS_CONNECTED: return "Connected"; case busConnectionStatus.BUS_STATUS_TX_ERRORS: - return "Tx not stable"; + return "Tx Errors"; case busConnectionStatus.BUS_STATUS_OFFLINE: return "Disconnected"; default: diff --git a/src/emsesp.cpp b/src/emsesp.cpp index b804d325d..bb2898d9b 100644 --- a/src/emsesp.cpp +++ b/src/emsesp.cpp @@ -139,7 +139,7 @@ uint8_t EMSESP::bus_status() { } // Tx Failure rate > 5% - if (((txservice_.telegram_fail_count() * 100) / total_sent) >= 5) { + if (((txservice_.telegram_fail_count() * 100) / total_sent) > 5) { return BUS_STATUS_TX_ERRORS; }