Skip to content

Commit ed8b1f6

Browse files
committed
Fix: Add debug logging for DEBUG_GPS_LOGGING initialization
1 parent 6f37ed6 commit ed8b1f6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

content/wardrive.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
console.log("🚀 wardrive.js loaded - DEBUG_GPS_LOGGING:", DEBUG_GPS_LOGGING);
21
// Minimal Wardrive sender with wake locks:
32
// - Connect to MeshCore Companion via Web Bluetooth (BLE)
43
// - Send pings as "@[MapperBot]<LAT LON>[ <power> ]" (power only if specified)
@@ -77,6 +76,8 @@ const state = {
7776
lastSkipReason: null // Track the reason for the last ping skip
7877
};
7978

79+
console.log("🚀 wardrive.js loaded - DEBUG_GPS_LOGGING:", DEBUG_GPS_LOGGING);
80+
8081
// ---- GPS Distance Calculation (Haversine Formula) ----
8182
function calculateDistance(lat1, lon1, lat2, lon2) {
8283
const R = 6371; // Earth's radius in kilometers

0 commit comments

Comments
 (0)