Scale throttle outputs by battery level. Fixes #4751

This commit is contained in:
Dennis Shtatnov
2016-11-19 14:55:52 +01:00
committed by Lorenz Meier
parent a94c8d7812
commit a634c14582
7 changed files with 83 additions and 4 deletions
+1
View File
@@ -1956,6 +1956,7 @@ int sdlog2_thread_main(int argc, char *argv[])
log_msg.body.log_BATT.current_filtered = buf.battery.current_filtered_a;
log_msg.body.log_BATT.discharged = buf.battery.discharged_mah;
log_msg.body.log_BATT.remaining = buf.battery.remaining;
log_msg.body.log_BATT.scale = buf.battery.scale;
log_msg.body.log_BATT.warning = buf.battery.warning;
LOGBUFFER_WRITE_AND_COUNT(BATT);
}