We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbb145f commit 21e19d7Copy full SHA for 21e19d7
src/sensor/sensor.c
@@ -176,7 +176,7 @@ int sensor_get_sensor_temperature(float *ptr)
176
else
177
return -1; // imu probably not scanned yet or temp not read yet or last valid temp is old
178
}
179
- &ptr = temp;
+ *ptr = temp;
180
return 0;
181
182
src/system/power.c
@@ -43,7 +43,7 @@ static bool device_plugged = false;
43
static bool device_charged = false;
44
45
static bool chg_temp_warn = false;
46
-static int64 last_valid_temp = -1;
+static int64_t last_valid_temp = -1;
47
48
LOG_MODULE_REGISTER(power, LOG_LEVEL_INF);
49
0 commit comments