aboutsummaryrefslogtreecommitdiff
path: root/remote_plot.c
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-04-28 20:43:32 -0700
committerXiao Pan <xyz@flylightning.xyz>2025-04-28 20:43:32 -0700
commit108b689bd681a6a0eb081076f87be3dc554506dd (patch)
tree13cfd6fbc5f743a8e47bfcb28bbaedc76373712d /remote_plot.c
parent4ae88c507bb08e181201f50814317dbfce880e97 (diff)
Use pi mycan.c .csv format
Diffstat (limited to 'remote_plot.c')
-rw-r--r--remote_plot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/remote_plot.c b/remote_plot.c
index 64014eb..d157e1d 100644
--- a/remote_plot.c
+++ b/remote_plot.c
@@ -489,9 +489,9 @@ static void print_data (GtkWidget *widget, gpointer user_data)
DATA *data=user_data;
printf("%u",data->cans.end->item.t);
for(int i=0;i<VOLTLEN;i++)
- printf(",%g",data->cans.end->item.volt[i]);
+ printf(",%5.3f",data->cans.end->item.volt[i]);
for(int i=0;i<TEMPLEN;i++)
- printf(",%g",data->cans.end->item.temp[i]);
+ printf(",%5.1f",data->cans.end->item.temp[i]);
putchar('\n');
}