Skip to content

Commit 5088444

Browse files
Update Wio WM1110 configuration to disable GPS and clean up location provider code
1 parent ec05d40 commit 5088444

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

variants/wio_wm1110/platformio.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ build_flags = ${nrf52_base.build_flags}
2424
-D LR11X0_DIO_AS_RF_SWITCH=true
2525
-D LR11X0_DIO3_TCXO_VOLTAGE=1.8
2626
-D RF_SWITCH_TABLE
27+
-D ENV_INCLUDE_GPS=0
2728
build_src_filter = ${nrf52_base.build_src_filter}
2829
+<helpers/*.cpp>
2930
+<helpers/sensors>

variants/wio_wm1110/target.cpp

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,6 @@
11
#include <Arduino.h>
22
#include "target.h"
33
#include <helpers/ArduinoHelpers.h>
4-
#include <helpers/sensors/LocationProvider.h>
5-
6-
class WM1110LocationProvider : public LocationProvider {
7-
public:
8-
long getLatitude() override { return 0; }
9-
long getLongitude() override { return 0; }
10-
long getAltitude() override { return 0; }
11-
long satellitesCount() override { return 0; }
12-
bool isValid() override { return false; }
13-
long getTimestamp() override { return 0; }
14-
void sendSentence(const char* sentence) override {}
15-
void reset() override {}
16-
void begin() override {}
17-
void stop() override {}
18-
void loop() override {}
19-
bool isEnabled() override { return false; }
20-
};
214

225
WioWM1110Board board;
236

@@ -26,8 +9,7 @@ RADIO_CLASS radio = new Module(P_LORA_NSS, P_LORA_DIO_1, P_LORA_RESET, P_LORA_BU
269
WRAPPER_CLASS radio_driver(radio, board);
2710

2811
VolatileRTCClock rtc_clock;
29-
WM1110LocationProvider location_provider;
30-
EnvironmentSensorManager sensors(location_provider);
12+
EnvironmentSensorManager sensors;
3113

3214
#ifndef LORA_CR
3315
#define LORA_CR 5

0 commit comments

Comments
 (0)