We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cedad8 commit 068b212Copy full SHA for 068b212
tests/validation/cpu_misc/cpu_misc.ino
@@ -11,23 +11,23 @@
11
12
/* Test functions */
13
14
-#if SOC_TEMP_SENSOR_SUPPORTED
15
void get_cpu_temperature() {
+#if SOC_TEMP_SENSOR_SUPPORTED
16
float temp = temperatureRead();
17
log_d("CPU temperature: %f", temp);
18
TEST_ASSERT_FLOAT_IS_NOT_NAN(temp);
19
TEST_ASSERT_FLOAT_WITHIN(40.0, 30.0, temp);
20
-}
+#else
21
+ log_d("CPU temperature not supported");
22
#endif
23
+}
24
25
/* Main functions */
26
27
void setup() {
28
UNITY_BEGIN();
29
- #if SOC_TEMP_SENSOR_SUPPORTED
30
RUN_TEST(get_cpu_temperature);
- #endif
31
32
UNITY_END();
33
}
0 commit comments