We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4005af1 commit 0d4a9f2Copy full SHA for 0d4a9f2
adc/read_vsys/power_status.c
@@ -35,7 +35,7 @@ int power_source(bool *battery_powered) {
35
int power_voltage(float *voltage_result) {
36
#ifndef PICO_VSYS_PIN
37
return PICO_ERROR_NO_DATA;
38
-#endif
+#else
39
#if CYW43_USES_VSYS_PIN
40
cyw43_thread_enter();
41
// Make sure cyw43 is awake
@@ -73,4 +73,5 @@ int power_voltage(float *voltage_result) {
73
const float conversion_factor = 3.3f / (1 << 12);
74
*voltage_result = vsys * 3 * conversion_factor;
75
return PICO_OK;
76
+#endif
77
}
0 commit comments