Browse Source

RC_Channel: rename dataflash to logger

master
Tom Pittenger 6 years ago committed by Peter Barker
parent
commit
961085fbd1
  1. 12
      libraries/RC_Channel/RC_Channel.cpp

12
libraries/RC_Channel/RC_Channel.cpp

@ -694,9 +694,9 @@ void RC_Channel::do_aux_function(const aux_func_t ch_option, const aux_switch_po @@ -694,9 +694,9 @@ void RC_Channel::do_aux_function(const aux_func_t ch_option, const aux_switch_po
SRV_Channels::set_emergency_stop(true);
// log E-stop
AP_Logger *df = AP_Logger::get_singleton();
if (df && df->logging_enabled()) {
df->Write_Event(DATA_MOTORS_EMERGENCY_STOPPED);
AP_Logger *logger = AP_Logger::get_singleton();
if (logger && logger->logging_enabled()) {
logger->Write_Event(DATA_MOTORS_EMERGENCY_STOPPED);
}
break;
}
@ -707,9 +707,9 @@ void RC_Channel::do_aux_function(const aux_func_t ch_option, const aux_switch_po @@ -707,9 +707,9 @@ void RC_Channel::do_aux_function(const aux_func_t ch_option, const aux_switch_po
SRV_Channels::set_emergency_stop(false);
// log E-stop cleared
AP_Logger *df = AP_Logger::get_singleton();
if (df && df->logging_enabled()) {
df->Write_Event(DATA_MOTORS_EMERGENCY_STOP_CLEARED);
AP_Logger *logger = AP_Logger::get_singleton();
if (logger && logger->logging_enabled()) {
logger->Write_Event(DATA_MOTORS_EMERGENCY_STOP_CLEARED);
}
break;
}

Loading…
Cancel
Save