AP_PiccoloCAN: allow compilation with HAL_LOGGING_ENABLED false

This commit is contained in:
Peter Barker 2023-07-14 10:58:07 +10:00 committed by Andrew Tridgell
parent 1cc2517e1e
commit bf49716520
1 changed files with 4 additions and 0 deletions

View File

@ -361,6 +361,7 @@ void AP_PiccoloCAN::update()
}
#endif // AP_EFI_CURRAWONG_ECU_ENABLED
#if HAL_LOGGING_ENABLED
AP_Logger *logger = AP_Logger::get_singleton();
// Push received telemetry data into the logging system
@ -397,6 +398,9 @@ void AP_PiccoloCAN::update()
}
}
}
#else
(void)timestamp;
#endif // HAL_LOGGING_ENABLED
}
#if HAL_GCS_ENABLED