Skip to content
Snippets Groups Projects
Commit 7d187440 authored by Randy Mackay's avatar Randy Mackay
Browse files

Plane: use battery.voltage2 method for logging

parent 5cdb8a4c
No related branches found
No related tags found
No related merge requests found
......@@ -431,8 +431,7 @@ struct PACKED log_Arm_Disarm {
static void Log_Write_Current()
{
float voltage2 = 0.0;
battery.voltage2(voltage2);
float voltage2 = battery.voltage2();
struct log_Current pkt = {
LOG_PACKET_HEADER_INIT(LOG_CURRENT_MSG),
time_ms : hal.scheduler->millis(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment