Commander: Update call for new power management interface

This commit is contained in:
Lorenz Meier 2017-02-04 18:29:10 +01:00
parent ce921345cf
commit bf448fce71

View File

@ -81,6 +81,8 @@
#include <float.h>
#include <systemlib/hysteresis/hysteresis.h>
#include <board_config.h>
#include <sys/stat.h>
#include <string.h>
#include <math.h>
@ -2239,7 +2241,7 @@ int commander_thread_main(int argc, char *argv[])
if (!armed.armed) {
mavlink_log_critical(&mavlink_log_pub, "CRITICAL BATTERY, SHUT SYSTEM DOWN");
usleep(200000);
board_pwr(false);
px4_board_pwr(false);
} else {
if (low_bat_action == 1) {