Skip to content

Commit

Permalink
MFD.js: show popup 'Computing route in progress' also while driving, …
Browse files Browse the repository at this point in the history
…similar to original MFD
  • Loading branch information
0xCAFEDECAF committed Dec 3, 2024
1 parent fb48080 commit 6a15b4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions VanLiveConnect/MFD.js.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3176,11 +3176,7 @@ function satnavCalculatingRoute()
// No popup in the guidance preference screen
if (currentLargeScreenId === "satnav_guidance_preference_menu") return;
// No popup while driving. Note: original MFD does seem to show this popup (in some cases) during driving.
if (satnavVehicleMoving()) return;
cancelChangeBackScreenTimer();
showPopupAndNotifyServer("satnav_computing_route_popup", 30000);
}
Expand Down Expand Up @@ -4856,6 +4852,7 @@ function handleItemChange(item, value, changed)
}
else if (value === "COMPUTING_ROUTE")
{
if (! satnavComputingRoute) satnavCalculatingRoute();
satnavComputingRoute = true;
satnavDestinationNotAccessible = false;
}
Expand All @@ -4881,8 +4878,8 @@ function handleItemChange(item, value, changed)
{
if (value.match(/COMPUTING_ROUTE/) && value.match(/DISC_PRESENT/))
{
if (! satnavComputingRoute) satnavCalculatingRoute();
satnavComputingRoute = true;
satnavCalculatingRoute();
}
else
{
Expand Down
Binary file modified VanLiveConnect/data/MFD.js.gz
Binary file not shown.

0 comments on commit 6a15b4c

Please sign in to comment.