Skip to content

Commit

Permalink
Classic system status data source
Browse files Browse the repository at this point in the history
  • Loading branch information
Navid200 committed Dec 18, 2023
1 parent c98f3b4 commit 5ef0937
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static void sendLocalBroadcast(final BgReading bgReading) {
UserError.Log.i("SENSOR QUEUE:", "Broadcast data");

String collectorName = DexCollectionType.getBestCollectorHardwareName();
if (collectorName.equals("G6 Native")) {
if (collectorName.equals("G6 Native") || collectorName.equals("G7")) {
collectorName += " / G5 Native"; // compatibility for older AAPS
}
bundle.putString(Intents.XDRIP_DATA_SOURCE_DESCRIPTION, collectorName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.eveningoutpost.dexdrip.cgm.sharefollow.ShareFollowService;
import com.eveningoutpost.dexdrip.cgm.webfollow.WebFollowService;
import com.eveningoutpost.dexdrip.cgm.carelinkfollow.CareLinkFollowService;
import static com.eveningoutpost.dexdrip.services.Ob1G5CollectionService.getTransmitterID;

import java.lang.reflect.Method;
import java.util.Collections;
Expand Down Expand Up @@ -276,7 +277,7 @@ public static String getBestCollectorHardwareName() {
return "Network G4 and Classic xDrip";
case DexcomG5:
if (Ob1G5CollectionService.usingNativeMode()) {
return Ob1G5CollectionService.usingG6() ? "G6 Native" : "G5 Native";
return Ob1G5CollectionService.usingG6() ? (getTransmitterID().length() < 6 ? "G7" : "G6 Native") : "G5 Native";
}
return dct.name();
case LibreWifi:
Expand Down

0 comments on commit 5ef0937

Please sign in to comment.