diff --git a/afsk/main.c b/afsk/main.c index 30a93fbd..9c3aad50 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -377,7 +377,7 @@ if (vB4) while (loop-- != 0) { - float batteryVoltage = read_sensor_data(sensor[BAT]); + float batteryVoltage = read_sensor_data(sensor[BAT]).voltage; #ifdef DEBUG_LOGGING fprintf(stderr,"INFO: Battery voltage: %f V Battery Threshold %f V\n", batteryVoltage, batteryThreshold); #endif