From d674a950c60d54e941bfadfc6da0fbd8b432ace2 Mon Sep 17 00:00:00 2001 From: Navid Date: Mon, 2 Oct 2023 22:59:30 -0400 Subject: [PATCH] Allow to start even if the number of days is -1 for a mod TX --- .../main/java/com/eveningoutpost/dexdrip/StartNewSensor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/eveningoutpost/dexdrip/StartNewSensor.java b/app/src/main/java/com/eveningoutpost/dexdrip/StartNewSensor.java index 37c08ef96a..7254022e51 100644 --- a/app/src/main/java/com/eveningoutpost/dexdrip/StartNewSensor.java +++ b/app/src/main/java/com/eveningoutpost/dexdrip/StartNewSensor.java @@ -104,7 +104,7 @@ private void sensorButtonClick() { ucalendar = Calendar.getInstance(); if (Ob1G5CollectionService.usingNativeMode()) { - if (!DexSyncKeeper.isReady(Pref.getString("dex_txid", "NULL")) || transmitterAgeInDays() == -1) { + if (!DexSyncKeeper.isReady(Pref.getString("dex_txid", "NULL")) || (transmitterAgeInDays() == -1 && !FirmwareCapability.isTransmitterModified(getTransmitterID()))) { JoH.static_toast_long("Need to connect to transmitter before we can start sensor"); UserError.Log.e(TAG, "Need to connect to transmitter before we can start sensor"); MegaStatus.startStatus(MegaStatus.G5_STATUS);