Skip to content

Commit

Permalink
improve comment regarding how we upload instant glucose records
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Allène committed Jun 8, 2024
1 parent f3811ed commit ceac99f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xdrip/Managers/OpenGlückManager/OpenGlückManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ public class OpenGlückManager: NSObject, OpenGlückSyncClientDelegate {
Task {
if UserDefaults.standard.openGlückUploadEnabled {
if !glucoseRecordsToUpload.isEmpty {
// we don't need to specifically upload instant glucose records as this will update the latest scan record,
// and all records uploaded here also end up in the instant glucose records
do {
let timeStampLastReadingToUpload = glucoseRecordsToUpload.map { $0.timestamp }.max()!
let device = OpenGlückDevice(modelName: modelName, deviceId: deviceId)
Expand Down

0 comments on commit ceac99f

Please sign in to comment.