oops my latest change busted android connection detection

This commit is contained in:
Kevin Hester
2021-05-03 15:37:37 +08:00
parent d179bda728
commit bc76c79e1e
2 changed files with 10 additions and 9 deletions

View File

@@ -32,7 +32,7 @@ void BluetoothPhoneAPI::onNowHasData(uint32_t fromRadioNum)
}
bool BluetoothPhoneAPI::checkIsConnected() {
return curConnectionHandle != -1;
return curConnectionHandle >= 0;
}
int toradio_callback(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt *ctxt, void *arg)