BattMon: fix example sketch compile error

This commit is contained in:
Randy Mackay 2014-12-03 15:58:22 +09:00
parent f1f71ef605
commit 909d525206

View File

@ -41,7 +41,7 @@ void setup() {
// initialise the battery monitor
battery_mon.init();
battery_mon.set_monitoring(AP_BATT_MONITOR_VOLTAGE_AND_CURRENT);
battery_mon.set_monitoring(0, BattMonitor_TYPE_ANALOG_VOLTAGE_AND_CURRENT);
hal.scheduler->delay(1000);
timer = hal.scheduler->millis();