ReadInsulinSensitivities assumes only 1 byte is used for insulin sensitivity. But when the sensitivity is > 255, the pump sets an additional overflow bit. That bit is currently being decoded as part of the time component, so both the time and sensitivity end up being wrong.
On a 523 pump I observed the following in both dev and master:
12am - 256
ReadInsulinSensitivities assumes only 1 byte is used for insulin sensitivity. But when the sensitivity is > 255, the pump sets an additional overflow bit. That bit is currently being decoded as part of the time component, so both the time and sensitivity end up being wrong.
On a 523 pump I observed the following in both dev and master: 12am - 256
11:30pm - 300