Datalog: show traced data as signed ints, not unsigned.

This commit is contained in:
Phil Hord 2013-11-25 16:13:55 -05:00 committed by Markus Hitter
parent 24f5416bba
commit 76bf5ef75a
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ static void emit_log_data(void) {
// Naive format: each line contains all values, beginning with the time
fprintf(file, "%lu", prev_t/1000); // microseconds
for (int i = 0; i < pin_count; i++)
fprintf(file, " %u", values[i]);
fprintf(file, " %d", values[i]);
fprintf(file, "\n");
fflush(file);
}