bewest / decoding-carelink

python serial driver for mm comlink2 protocol
http://bewest.github.io/decoding-carelink
Other
71 stars 52 forks source link

ReadPumpStatus(): x12 pumps use 'code = 131' for status, not 'code = 206' #202

Open dcacklam opened 6 years ago

dcacklam commented 6 years ago

ReadPumpStatus currently presumes all pumps use code 206 to call for pump status.

The x12/x11 pumps use 131 instead (as per the docs in this project).

Either we need a ReadPumpStatus512 routine (and code in oref0 or openaps to call the right routine based on settings/model.json) or we need to modify ReadPumpStatus to be model aware.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/52442633-readpumpstatus-x12-pumps-use-code-131-for-status-not-code-206?utm_campaign=plugin&utm_content=tracker%2F522759&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F522759&utm_medium=issues&utm_source=github).