mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-02-05 13:22:59 -05:00
NRF52 based devices don't need our forceRefresh BLE hack
This commit is contained in:
@@ -191,6 +191,10 @@ class BluetoothInterface(val service: RadioInterfaceService, val address: String
|
||||
*/
|
||||
private var isFirstSend = true
|
||||
|
||||
// NRF52 targets do not need the nasty force refresh hack that ESP32 needs (because they keep their
|
||||
// BLE handles stable. So turn the hack off for these devices. FIXME - find a better way to know that the board is NRF52 based
|
||||
private var needForceRefresh = !address.startsWith("FD:10:04")
|
||||
|
||||
init {
|
||||
// Note: this call does no comms, it just creates the device object (even if the
|
||||
// device is off/not connected)
|
||||
@@ -400,8 +404,6 @@ class BluetoothInterface(val service: RadioInterfaceService, val address: String
|
||||
}
|
||||
}
|
||||
|
||||
private var needForceRefresh = true
|
||||
|
||||
private fun onConnect(connRes: Result<Unit>) {
|
||||
// This callback is invoked after we are connected
|
||||
|
||||
|
||||
Reference in New Issue
Block a user