|
@@ -52,7 +52,7 @@ int16_t crafty_get_current_temp(void) {
|
52
|
52
|
uint8_t buff[2];
|
53
|
53
|
int32_t r = ble_read(uuid_base, buff, sizeof(buff));
|
54
|
54
|
if (r != sizeof(buff)) {
|
55
|
|
- debug("ble_read unexpected value %ld", r);
|
|
55
|
+ debug("ble_read unexpected value %" PRId32, r);
|
56
|
56
|
return -1;
|
57
|
57
|
}
|
58
|
58
|
|
|
@@ -66,7 +66,7 @@ int16_t crafty_get_target_temp(void) {
|
66
|
66
|
uint8_t buff[2];
|
67
|
67
|
int32_t r = ble_read(uuid_base, buff, sizeof(buff));
|
68
|
68
|
if (r != sizeof(buff)) {
|
69
|
|
- debug("ble_read unexpected value %ld", r);
|
|
69
|
+ debug("ble_read unexpected value %" PRId32, r);
|
70
|
70
|
return -1;
|
71
|
71
|
}
|
72
|
72
|
|
|
@@ -84,7 +84,7 @@ int8_t crafty_set_target_temp(uint16_t value) {
|
84
|
84
|
|
85
|
85
|
int8_t r = ble_write(uuid_base, uuid_base2, buff, sizeof(buff));
|
86
|
86
|
if (r != 0) {
|
87
|
|
- debug("ble_write unexpected value %d", r);
|
|
87
|
+ debug("ble_write unexpected value %" PRId8, r);
|
88
|
88
|
}
|
89
|
89
|
return r;
|
90
|
90
|
}
|
|
@@ -101,7 +101,7 @@ int8_t crafty_set_heater_state(bool value) {
|
101
|
101
|
uint16_t d = 0;
|
102
|
102
|
int8_t r = ble_write(uuid_base, uuid_base2, (uint8_t *)&d, sizeof(d));
|
103
|
103
|
if (r != 0) {
|
104
|
|
- debug("ble_write unexpected value %d", r);
|
|
104
|
+ debug("ble_write unexpected value %" PRId8, r);
|
105
|
105
|
}
|
106
|
106
|
return r;
|
107
|
107
|
}
|
|
@@ -112,7 +112,7 @@ int8_t crafty_get_battery_state(void) {
|
112
|
112
|
uint8_t buff[2];
|
113
|
113
|
int32_t r = ble_read(uuid_base, buff, sizeof(buff));
|
114
|
114
|
if (r != sizeof(buff)) {
|
115
|
|
- debug("ble_read unexpected value %ld", r);
|
|
115
|
+ debug("ble_read unexpected value %" PRId32, r);
|
116
|
116
|
return -1;
|
117
|
117
|
}
|
118
|
118
|
|