diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2025-04-30 22:29:28 -0700 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2025-04-30 22:29:28 -0700 |
commit | 21de24540f409e98fb08572f83b953cfec1967b7 (patch) | |
tree | c0ed8e840b00bff98785214d9dc51285e870f040 /remote_plot.c | |
parent | 3471413e9f07fd7ab7f2ba22f952bce5cadb037d (diff) |
Changes to make it work on raspberry pi debian 12
Diffstat (limited to 'remote_plot.c')
-rw-r--r-- | remote_plot.c | 4 |
1 files changed, 3 insertions, 1 deletions
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)); |