revisions

This commit is contained in:
pls.153 2023-11-02 14:18:36 +01:00
parent cbcfa588c9
commit 1886614c3e
3 changed files with 4 additions and 6 deletions

View file

@ -53,7 +53,7 @@ private Q_SLOTS:
void deviceScanFinished();
void deviceScanError(QBluetoothDeviceDiscoveryAgent::Error);
// QLowEnergyController realted
// QLowEnergyController related
void addLowEnergyService(const QBluetoothUuid&);
void deviceConnected();
void errorReceived(QLowEnergyController::Error);

View file

@ -84,11 +84,9 @@
(when *config-complete*
(me:num *my-node-info*)))
(defun to-radio (&key from to id hop-limit want-ack priority decoded)
(defun to-radio (&rest args &key from to id hop-limit want-ack priority decoded)
(me:make-to-radio
:packet (me:make-mesh-packet
:from from :to to :id id :hop-limit hop-limit :want-ack want-ack
:priority priority :decoded decoded)))
:packet (apply 'me:make-mesh-packet args)))
(defun send-message (text)
"Sends TEXT to radio and adds it to QML item model."

View file

@ -54,7 +54,7 @@ Rectangle {
height: width
playing: false
source: "../img/semaphore.gif"
currentFrame: model.ackState ? model.ackState.substr(2) : 0 // see 'qml:hex'
currentFrame: model.ackState ? parseInt(model.ackState.substr(2), 16) : 0 // see 'qml:hex'
visible: model.me
}