Skip to content

Commit

Permalink
Examples: cleanup example_adc a little bit
Browse files Browse the repository at this point in the history
  • Loading branch information
skotopes committed Apr 17, 2024
1 parent 0f860da commit 4297a26
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions applications/examples/example_adc/example_adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,8 @@ int32_t example_adc_main(void* p) {
}
} else {
for(size_t i = 0; i < data.count; i++) {
if(data.items[i].converter) {
data.items[i].value = data.items[i].converter(
adc_handle, furi_hal_adc_read(adc_handle, data.items[i].pin->channel));
}
data.items[i].value = data.items[i].converter(
adc_handle, furi_hal_adc_read(adc_handle, data.items[i].pin->channel));
}
view_port_update(view_port);
}
Expand Down

0 comments on commit 4297a26

Please sign in to comment.