mirror of
https://github.com/okalachev/flix.git
synced 2026-06-28 05:56:44 +00:00
Refactor Wi-Fi log download
Use MAVLink LOG_REQUEST_DATA and LOG_DATA for download log instead of console. Make Wi-Fi download default way of downloading the log. Make `log` command only print the header and `log dump` dump the log.
This commit is contained in:
+4
-3
@@ -61,12 +61,13 @@ void logData() {
|
||||
}
|
||||
}
|
||||
|
||||
void dumpLog() {
|
||||
// Print header
|
||||
void printLogHeader() {
|
||||
for (int i = 0; i < logColumns; i++) {
|
||||
print("%s%s", logEntries[i].name, i < logColumns - 1 ? "," : "\n");
|
||||
}
|
||||
// Print data
|
||||
}
|
||||
|
||||
void printLogData() {
|
||||
for (int i = 0; i < LOG_SIZE; i++) {
|
||||
if (logBuffer[i][0] == 0) continue; // skip empty records
|
||||
for (int j = 0; j < logColumns; j++) {
|
||||
|
||||
Reference in New Issue
Block a user