revisions

This commit is contained in:
pls.153 2024-07-04 10:46:17 +02:00
parent fed3fe1671
commit 416b721224
4 changed files with 6 additions and 3 deletions

View file

@ -432,7 +432,6 @@
:tx-power 0 ; max legal power
:sx126x-rx-boosted-gain t))))))
(defun wait-for-reboot (&optional (seconds 15))
"Changing config will reboot device."
(qlater (lambda ()

View file

@ -32,6 +32,9 @@
#-android 0
'lora:start-device-discovery))
(defun has-feature (name)
(qt:has-feature qt:*cpp* name))
(defun in-data-path (&optional (file "") (prefix "data/"))
#+mobile
(merge-pathnames (x:cc prefix file))

View file

@ -7,6 +7,7 @@
#:background-mode-changed
#:change-setting
#:confirm-dialog
#:has-feature
#:icon-press-and-hold
#:in-data-path
#:ini

View file

@ -7,9 +7,9 @@
(setf *connection* (or (app:setting :connection)
:ble))
(set-connection-type)
(unless (qt:has-feature qt:*cpp* "ble")
(unless (app:has-feature "ble")
(q> |height| ui:*ble* 0))
(unless (qt:has-feature qt:*cpp* "usb")
(unless (app:has-feature "usb")
(q> |height| ui:*usb* 0))
(q> |checked| (symbol-name *connection*) t)
(q> |model| ui:*region*