mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-19 19:42:32 +00:00
commit
ded1cbf4dd
@ -622,12 +622,12 @@ void AdminModule::handleGetDeviceConnectionStatus(const meshtastic_MeshPacket &r
|
|||||||
#if HAS_BLUETOOTH
|
#if HAS_BLUETOOTH
|
||||||
conn.has_bluetooth = true;
|
conn.has_bluetooth = true;
|
||||||
conn.bluetooth.pin = config.bluetooth.fixed_pin;
|
conn.bluetooth.pin = config.bluetooth.fixed_pin;
|
||||||
#endif
|
|
||||||
#ifdef ARCH_ESP32
|
#ifdef ARCH_ESP32
|
||||||
conn.bluetooth.is_connected = nimbleBluetooth->isConnected();
|
conn.bluetooth.is_connected = nimbleBluetooth->isConnected();
|
||||||
conn.bluetooth.rssi = nimbleBluetooth->getRssi();
|
conn.bluetooth.rssi = nimbleBluetooth->getRssi();
|
||||||
#elif defined(ARCH_NRF52)
|
#elif defined(ARCH_NRF52)
|
||||||
conn.bluetooth.is_connected = nrf52Bluetooth->isConnected();
|
conn.bluetooth.is_connected = nrf52Bluetooth->isConnected();
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
conn.has_serial = true; // No serial-less devices
|
conn.has_serial = true; // No serial-less devices
|
||||||
conn.serial.is_connected = powerFSM.getState() == &stateSERIAL;
|
conn.serial.is_connected = powerFSM.getState() == &stateSERIAL;
|
||||||
@ -699,4 +699,4 @@ AdminModule::AdminModule() : ProtobufModule("Admin", meshtastic_PortNum_ADMIN_AP
|
|||||||
{
|
{
|
||||||
// restrict to the admin channel for rx
|
// restrict to the admin channel for rx
|
||||||
boundChannel = Channels::adminChannel;
|
boundChannel = Channels::adminChannel;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user