diff --git a/examples/meshtastic-qt6/qml/ext/radios/BatteryLevel.qml b/examples/meshtastic-qt6/qml/ext/radios/BatteryLevel.qml index 5f262ba..0c443f9 100644 --- a/examples/meshtastic-qt6/qml/ext/radios/BatteryLevel.qml +++ b/examples/meshtastic-qt6/qml/ext/radios/BatteryLevel.qml @@ -4,7 +4,7 @@ Rectangle { anchors.verticalCenter: parent.verticalCenter width: 12 height: 25 - color: (level > 15) ? "#f0f0f0" : "yellow" + color: (percent() > 15) ? "#f0f0f0" : "yellow" radius: 2 border.width: 1 border.color: "#808080" diff --git a/examples/meshtastic/hardware/radio.htm b/examples/meshtastic/hardware/radio.htm index a7647b8..80519e9 100644 --- a/examples/meshtastic/hardware/radio.htm +++ b/examples/meshtastic/hardware/radio.htm @@ -105,7 +105,7 @@

Simple Standalone Device

- Support for Meshtastic is increasing continuously. These are CircuitMess Chatter 2.0 devices (they come in pairs, around 30€ for 2 devices on AMZN). + Support for Meshtastic is increasing continuously. These are CircuitMess Chatter 2.0 devices (they come in pairs). Currently only available on ebay.

They have some limitations: they only support MediumSlow instead of LongFast, and have a lousy antenna, but work great if those limitations are acceptable for one's use case. diff --git a/examples/meshtastic/lisp/lora.lisp b/examples/meshtastic/lisp/lora.lisp index 40d43b8..98af165 100644 --- a/examples/meshtastic/lisp/lora.lisp +++ b/examples/meshtastic/lisp/lora.lisp @@ -342,7 +342,8 @@ (setf radios:*found* t) (radios:add-radio (list :name name - :hw-model (symbol-name (me:hw-model x:it)) + :hw-model (x:string-substitute "?" "%UNDEFINED" + (symbol-name (me:hw-model x:it))) :voltage (format nil "~1$V" (if metrics (me:voltage metrics) 0)) :battery-level (format nil "~D%" (if metrics (max 0 (min 100 (me:battery-level metrics))) 0)) :current current)) diff --git a/examples/meshtastic/qml/ext/radios/BatteryLevel.qml b/examples/meshtastic/qml/ext/radios/BatteryLevel.qml index 6ac2573..ee053e5 100644 --- a/examples/meshtastic/qml/ext/radios/BatteryLevel.qml +++ b/examples/meshtastic/qml/ext/radios/BatteryLevel.qml @@ -4,7 +4,7 @@ Rectangle { anchors.verticalCenter: parent.verticalCenter width: 12 height: 25 - color: (level > 15) ? "#f0f0f0" : "yellow" + color: (percent() > 15) ? "#f0f0f0" : "yellow" radius: 2 border.width: 1 border.color: "#808080"