Skip to content

Commit

Permalink
Update LED pattern on device disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
shermp committed Sep 15, 2024
1 parent 9f5ff53 commit 017a192
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/asha_bt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,11 @@ static void hci_event_handler(uint8_t packet_type, uint16_t channel, uint8_t *pa
LOG_INFO("%s: Disconnected with %hu available credits.", ha.side_str, ha.avail_credits);
ha_mgr.remove_by_conn_handle(c);
}
if (ha_mgr.hearing_aids.size() > 0) {
led_mgr.set_led_pattern(one_connected);
} else {
led_mgr.set_led_pattern(none_connected);
}
scan_state = ScanState::Scan;
curr_scan.reset();
break;
Expand Down

0 comments on commit 017a192

Please sign in to comment.