initial commit off adc into app
This commit is contained in:
parent
5288cba869
commit
43790abbc5
1 changed files with 5 additions and 1 deletions
|
|
@ -389,8 +389,12 @@ impl App {
|
|||
}
|
||||
if self.timers.batt_adc_timer.need_service() {
|
||||
self.timers.batt_adc_timer.service();
|
||||
let bv = self.interfaces.adc_core.get_battery_voltage();
|
||||
#[cfg(feature = "enable_print")]
|
||||
println!("batt adc service");
|
||||
println!("batt adc service: {bv}");
|
||||
|
||||
// TODO:
|
||||
// do stuff if the battery voltage is below some threshold
|
||||
}
|
||||
if self.timers.usb_adc_timer.need_service() {
|
||||
self.timers.usb_adc_timer.service();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue