Skip to content

Commit 21e19d7

Browse files
committed
fix compilation
never let me code without a compiler
1 parent bbb145f commit 21e19d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sensor/sensor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ int sensor_get_sensor_temperature(float *ptr)
176176
else
177177
return -1; // imu probably not scanned yet or temp not read yet or last valid temp is old
178178
}
179-
&ptr = temp;
179+
*ptr = temp;
180180
return 0;
181181
}
182182

src/system/power.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static bool device_plugged = false;
4343
static bool device_charged = false;
4444

4545
static bool chg_temp_warn = false;
46-
static int64 last_valid_temp = -1;
46+
static int64_t last_valid_temp = -1;
4747

4848
LOG_MODULE_REGISTER(power, LOG_LEVEL_INF);
4949

0 commit comments

Comments
 (0)