mirror of
https://codeberg.org/icewind/taspromto.git
synced 2026-06-03 08:34:21 +02:00
fix with new mhz output
This commit is contained in:
parent
d8d749435c
commit
e14b749026
1 changed files with 2 additions and 1 deletions
|
|
@ -89,7 +89,8 @@ impl DeviceState {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (key, value) in json.entries() {
|
for (key, value) in json.entries() {
|
||||||
if let Some(addr) = key.strip_prefix("MJ_HT_V1-") {
|
if let Some(addr) = key.strip_prefix("MJ_HT_V1") {
|
||||||
|
let addr = addr.trim_start_matches('-');
|
||||||
match BDAddr::from_mi_temp_mac_part(addr) {
|
match BDAddr::from_mi_temp_mac_part(addr) {
|
||||||
Ok(addr) => {
|
Ok(addr) => {
|
||||||
let state = self.mi_temp_devices.entry(addr).or_default();
|
let state = self.mi_temp_devices.entry(addr).or_default();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue