Skip to content

Commit

Permalink
build fix for non pico boards
Browse files Browse the repository at this point in the history
  • Loading branch information
kilograham committed Jun 8, 2023
1 parent 4005af1 commit 0d4a9f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion adc/read_vsys/power_status.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ int power_source(bool *battery_powered) {
int power_voltage(float *voltage_result) {
#ifndef PICO_VSYS_PIN
return PICO_ERROR_NO_DATA;
#endif
#else
#if CYW43_USES_VSYS_PIN
cyw43_thread_enter();
// Make sure cyw43 is awake
Expand Down Expand Up @@ -73,4 +73,5 @@ int power_voltage(float *voltage_result) {
const float conversion_factor = 3.3f / (1 << 12);
*voltage_result = vsys * 3 * conversion_factor;
return PICO_OK;
#endif
}

0 comments on commit 0d4a9f2

Please sign in to comment.