diff --git a/client/public/notification-bar.js b/client/public/notification-bar.js index 85f646e..d775ef1 100644 --- a/client/public/notification-bar.js +++ b/client/public/notification-bar.js @@ -112,7 +112,7 @@ class DashboardHeader extends HTMLElement { if (gpsInfo && gpsDetail) { if (hasValidFix) { gpsInfo.textContent = `${gps.latitude.toFixed(4)}, ${gps.longitude.toFixed(4)}`; - gpsDetail.textContent = `Alt: ${Math.round(gps.altitude)}m • Acc: ${Math.round(gps.accuracy)}m • ${gps.satellites} Sats`; + gpsDetail.textContent = `Alt: ${gps.altitude != null ? Math.round(gps.altitude) : '?'}m • Speed: ${ gps.speed != null ? Math.round(gps.speed * 10) / 10 : '?'} m/s
Acc: ${gps.accuracy ? Math.round(gps.accuracy) : 'None'}m • ${gps.satellites ?? '?'} Sats`; } else { gpsInfo.textContent = gps.satellites > 0 ? 'Acquiring Fix...' : 'No Fix'; gpsDetail.textContent = `${gps.satellites} satellites`;