Diff between 14803c4e4fafbce64b00e56926b0eb0092fdd12f and c569aca90c3815cb84619b308d3cff24a66a6870
Changed Files
| File | Additions | Deletions | Status |
| thermometer/thermometer.c | +1 | -1 | modified |
Full Patch
diff --git a/thermometer/thermometer.c b/thermometer/thermometer.c
index db33cdb..e3872c9 100644
--- a/thermometer/thermometer.c
+++ b/thermometer/thermometer.c
@@ -954,7 +954,7 @@ static void proc_measurement(struct thermometer *t, const uint8_t *pdu,
}
ts.tm_year = att_get_u16(&pdu[8]) - 1900;
- ts.tm_mon = pdu[10];
+ ts.tm_mon = pdu[10] - 1;
ts.tm_mday = pdu[11];
ts.tm_hour = pdu[12];
ts.tm_min = pdu[13];