Send network ping on triple-click (#1852)

* Send network ping on multi-press

* Refresh myNodeInfo before sending

* Cleanup and screen print

* Update ButtonThread.h
This commit is contained in:
Ben Meadors authored and GitHub committed 2022-10-24 11:03:54 -05:00
1 parent c47401d729
commit 761804b17a
2 files changed
+3 -7

No files matched your search

+3 -6
View File
@@ -166,12 +166,9 @@ class ButtonThread : public concurrency::OSThread
static void userButtonMultiPressed()
{
#ifdef ARCH_ESP32
clearNVS();
#endif
#ifdef ARCH_NRF52
clearBonds();
#endif
screen->print("Sent ad-hoc ping\n");
service.refreshMyNodeInfo();
service.sendNetworkPing(NODENUM_BROADCAST, true);
}
static void userButtonPressedLongStart()
-1
View File
@@ -12,7 +12,6 @@ NimBLECharacteristic *fromNumCharacteristic;
NimBLEServer *bleServer;
static bool passkeyShowing;
static uint32_t doublepressed;
class BluetoothPhoneAPI : public PhoneAPI
{