Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dabear committed Apr 7, 2019
1 parent 750024f commit 0f026fa
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions MiaomiaoClient/MiaoMiaoClientManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -408,17 +408,20 @@ public final class MiaoMiaoClientManager: CGMManager, MiaoMiaoBluetoothManagerDe
// this was the case for readouts that were not yet complete
// but that was commented out in MiaoMiaoManager.swift, see comment there:
// "dabear-edit: don't notify on incomplete readouts"
os_log("incomplete package or unknown response state")
NSLog("dabear:: incomplete package or unknown response state")
return
}

switch packet {
case .newSensor:
//invalidate any saved calibration parameters
NSLog("dabear:: new libresensor detected")
break
case .noSensor:
NSLog("dabear:: no libresensor detected")
break
case .frequencyChangedResponse:
NSLog("dabear:: miaomiao readout interval has changed!")
break
//consider notifying user here that sensor is not found
default:
//we don't care about the rest!
break
Expand Down

0 comments on commit 0f026fa

Please sign in to comment.