Skip to content

Commit

Permalink
MFD.js: remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCAFEDECAF committed Dec 18, 2024
1 parent 9c14ccf commit f029a88
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions VanLiveConnect/MFD.js.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3235,7 +3235,6 @@ function satnavGuidancePreferencePopupYesButton()
{
hidePopup('satnav_guidance_preference_popup');
setDestinationNotAccessiblePopupOk();
if (showDestinationNotAccessiblePopupIfApplicable()) return;
if (satnavMode === "IN_GUIDANCE_MODE")
{
if (! $("#satnav_guidance").is(":visible")) satnavSwitchToGuidanceScreen();
Expand Down Expand Up @@ -3267,16 +3266,7 @@ function satnavGuidancePreferenceEscape()
function satnavGuidancePreferenceValidate()
{
if (currentLargeScreenId === "satnav_guidance")
{
satnavSwitchToGuidanceScreen();
setDestinationNotAccessiblePopupOk();
if (satnavComputingRoute) satnavCalculatingRoute(); else showDestinationNotAccessiblePopupIfApplicable();
}
else
{
satnavSwitchToGuidanceScreen();
} // if
satnavSwitchToGuidanceScreen();
}
// Format a string like "45 km", "15 mi", "7000 m", "880 yd" or "60 m". Return an array [distance, unit]
Expand Down
Binary file modified VanLiveConnect/data/MFD.js.gz
Binary file not shown.

0 comments on commit f029a88

Please sign in to comment.