Skip to content

Commit

Permalink
Add watch after reopen the gps file (#872)
Browse files Browse the repository at this point in the history
* Add watch after reopen the file

      vehicle_file_close(priv) disables the watch of the file.
      vehicle_file_open(priv) dont re enable it. So the gps position was frozen
  • Loading branch information
gefin authored and pgrandin committed Sep 26, 2019
1 parent d18dec5 commit 8a0630b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions navit/vehicle/file/vehicle_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,7 @@ static void vehicle_file_io(struct vehicle_priv *priv) {
case 0:
vehicle_file_close(priv);
vehicle_file_open(priv);
vehicle_file_enable_watch(priv);
break;
case 1:
vehicle_file_disable_watch(priv);
Expand Down

0 comments on commit 8a0630b

Please sign in to comment.