AP_KDECAN: rename dataflash to logger

This commit is contained in:
Tom Pittenger 2019-02-11 00:32:57 -08:00 committed by Peter Barker
parent 3eeaa2c8df
commit 7e2a944eb2
1 changed files with 3 additions and 3 deletions

View File

@ -600,9 +600,9 @@ void AP_KDECAN::update()
debug_can(2, "KDECAN: failed to get PWM semaphore on write\n\r"); debug_can(2, "KDECAN: failed to get PWM semaphore on write\n\r");
} }
AP_Logger *df = AP_Logger::get_singleton(); AP_Logger *logger = AP_Logger::get_singleton();
if (df == nullptr || !df->should_log(0xFFFFFFFF)) { if (logger == nullptr || !logger->should_log(0xFFFFFFFF)) {
return; return;
} }
@ -627,7 +627,7 @@ void AP_KDECAN::update()
// log ESC telemetry data // log ESC telemetry data
for (uint8_t i = 0; i < _esc_max_node_id; i++) { for (uint8_t i = 0; i < _esc_max_node_id; i++) {
if (telem_buffer[i].new_data) { if (telem_buffer[i].new_data) {
df->Write_ESC(i, telem_buffer[i].time, logger->Write_ESC(i, telem_buffer[i].time,
int32_t(telem_buffer[i].rpm * 60UL * 2 / num_poles * 100), int32_t(telem_buffer[i].rpm * 60UL * 2 / num_poles * 100),
telem_buffer[i].voltage, telem_buffer[i].voltage,
telem_buffer[i].current, telem_buffer[i].current,