From 21de24540f409e98fb08572f83b953cfec1967b7 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Wed, 30 Apr 2025 22:29:28 -0700 Subject: Changes to make it work on raspberry pi debian 12 --- remote_plot.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'remote_plot.c') diff --git a/remote_plot.c b/remote_plot.c index b86dd3f..c6c847f 100644 --- a/remote_plot.c +++ b/remote_plot.c @@ -275,7 +275,9 @@ static gboolean read_data(gpointer user_data) // This is to represent a loop over time // Let's try a random walk process - file = sftp_open(data->sftp, sftp_expand_path(data->sftp,"~/.local/share/mycan.csv"), access_type, 0); + // old libssh seems does not have sftp_expand_path + //file = sftp_open(data->sftp, sftp_expand_path(data->sftp,"~/.local/share/mycan.csv"), access_type, 0); + file = sftp_open(data->sftp, "/home/Spartan_Racing_Charger/.local/share/mycan.csv", access_type, 0); if (file == NULL) { fprintf(stderr, "Can't open file for reading: %s\n", ssh_get_error(data->session)); -- cgit v1.2.3-70-g09d2