mirror of
https://github.com/meshtastic/firmware.git
synced 2025-05-02 12:03:56 +00:00
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:
parent
c47401d729
commit
761804b17a
@ -166,12 +166,9 @@ class ButtonThread : public concurrency::OSThread
|
|||||||
|
|
||||||
static void userButtonMultiPressed()
|
static void userButtonMultiPressed()
|
||||||
{
|
{
|
||||||
#ifdef ARCH_ESP32
|
screen->print("Sent ad-hoc ping\n");
|
||||||
clearNVS();
|
service.refreshMyNodeInfo();
|
||||||
#endif
|
service.sendNetworkPing(NODENUM_BROADCAST, true);
|
||||||
#ifdef ARCH_NRF52
|
|
||||||
clearBonds();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void userButtonPressedLongStart()
|
static void userButtonPressedLongStart()
|
||||||
|
@ -12,7 +12,6 @@ NimBLECharacteristic *fromNumCharacteristic;
|
|||||||
NimBLEServer *bleServer;
|
NimBLEServer *bleServer;
|
||||||
|
|
||||||
static bool passkeyShowing;
|
static bool passkeyShowing;
|
||||||
static uint32_t doublepressed;
|
|
||||||
|
|
||||||
class BluetoothPhoneAPI : public PhoneAPI
|
class BluetoothPhoneAPI : public PhoneAPI
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user