feat: moved Sensors widget to the Stack_t (preparing for Sensors -> Stack widget migration)

This commit is contained in:
Serhiy Mytrovtsiy
2023-03-30 18:29:12 +02:00
parent 6a7392afa2
commit 926838c52a
5 changed files with 98 additions and 90 deletions

View File

@@ -77,11 +77,11 @@ public class Bluetooth: Module {
self.settingsView.setList(active)
})
var list: [KeyValue_t] = []
var list: [Stack_t] = []
active.forEach { (d: BLEDevice) in
if d.state {
d.batteryLevel.forEach { (p: KeyValue_t) in
list.append(KeyValue_t(key: "\(d.address)-\(p.key)", value: "\(p.value)%"))
list.append(Stack_t(key: "\(d.address)-\(p.key)", value: "\(p.value)%"))
}
}
}