diff options
author | Ben West <bewest@gmail.com> | 2016-03-15 14:59:51 -0700 |
---|---|---|
committer | Ben West <bewest@gmail.com> | 2016-03-15 14:59:51 -0700 |
commit | b9c31db6f8e2e7f1d92dc8fb9f6a092ec8e2e9cd (patch) | |
tree | d7b97499f63a19e30fbc1de8c6ef8c376fdf5d97 | |
parent | aba0b700ef44b65b7a2ecf60de81241b731927f3 (diff) |
read ChargerCurrent settings
-rw-r--r-- | dexcom_reader/readdata.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dexcom_reader/readdata.py b/dexcom_reader/readdata.py index 9fa60a5..35d6318 100644 --- a/dexcom_reader/readdata.py +++ b/dexcom_reader/readdata.py | |||
@@ -192,6 +192,11 @@ class Dexcom(object): | |||
192 | # ??? | 192 | # ??? |
193 | return self.GenericReadCommand(constants.READ_SETUP_WIZARD_STATE).data | 193 | return self.GenericReadCommand(constants.READ_SETUP_WIZARD_STATE).data |
194 | 194 | ||
195 | def ReadChargerCurrentSetting (self): | ||
196 | MAP = ( 'Unknown', 'Power100mA', 'Power500mA', 'PowerMax', 'PowerSuspended' ) | ||
197 | raw = bytearray(self.GenericReadCommand(constants.READ_CHARGER_CURRENT_SETTING).data) | ||
198 | return MAP[raw[0]] | ||
199 | |||
195 | 200 | ||
196 | def ReadManufacturingData(self): | 201 | def ReadManufacturingData(self): |
197 | data = self.ReadRecords('MANUFACTURING_DATA')[0].xmldata | 202 | data = self.ReadRecords('MANUFACTURING_DATA')[0].xmldata |