Skip to content

Commit 068b212

Browse files
committed
fix
1 parent 6cedad8 commit 068b212

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/validation/cpu_misc/cpu_misc.ino

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@
1111

1212
/* Test functions */
1313

14-
#if SOC_TEMP_SENSOR_SUPPORTED
1514
void get_cpu_temperature() {
15+
#if SOC_TEMP_SENSOR_SUPPORTED
1616
float temp = temperatureRead();
1717
log_d("CPU temperature: %f", temp);
1818
TEST_ASSERT_FLOAT_IS_NOT_NAN(temp);
1919
TEST_ASSERT_FLOAT_WITHIN(40.0, 30.0, temp);
20-
}
20+
#else
21+
log_d("CPU temperature not supported");
2122
#endif
23+
}
2224

2325
/* Main functions */
2426

2527
void setup() {
2628
UNITY_BEGIN();
2729

28-
#if SOC_TEMP_SENSOR_SUPPORTED
2930
RUN_TEST(get_cpu_temperature);
30-
#endif
3131

3232
UNITY_END();
3333
}

0 commit comments

Comments
 (0)