MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / onScanButtonClicked

Function onScanButtonClicked

Tactility/Source/app/btmanage/View.cpp:48–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48static void onScanButtonClicked(lv_event_t* event) {
49 auto bt = std::static_pointer_cast<BtManage>(getCurrentApp());
50 Device* dev = device_find_first_active_by_type(&BLUETOOTH_TYPE);
51 bool scanning = dev ? bluetooth_is_scanning(dev) : false;
52 bt->getBindings().onScanToggled(!scanning);
53}
54
55// region Peer list callbacks
56

Callers

nothing calls this directly

Calls 3

getCurrentAppFunction · 0.85
bluetooth_is_scanningFunction · 0.85

Tested by

no test coverage detected