t1000e: gps toggle not using board class
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#include <Arduino.h>
|
||||
#include "T1000eBoard.h"
|
||||
#include <Wire.h>
|
||||
#include "target.h"
|
||||
|
||||
#include <bluefruit.h>
|
||||
|
||||
@@ -27,10 +26,6 @@ void T1000eBoard::begin() {
|
||||
delay(10); // give sx1262 some time to power up
|
||||
}
|
||||
|
||||
bool T1000eBoard::toggleGps() {
|
||||
return sensors.toggle_gps();
|
||||
}
|
||||
|
||||
#if 0
|
||||
static BLEDfu bledfu;
|
||||
|
||||
|
||||
@@ -66,8 +66,6 @@ public:
|
||||
return 0;
|
||||
}
|
||||
|
||||
virtual bool toggleGps() override;
|
||||
|
||||
void powerOff() override {
|
||||
#ifdef HAS_GPS
|
||||
digitalWrite(GPS_VRTC_EN, LOW);
|
||||
|
||||
@@ -28,7 +28,8 @@ public:
|
||||
const char* getSettingName(int i) const override;
|
||||
const char* getSettingValue(int i) const override;
|
||||
bool setSettingValue(const char* name, const char* value) override;
|
||||
bool toggle_gps() { gps_active ? stop_gps() : start_gps(); return gps_active;}
|
||||
bool getGpsStatus() override { return gps_active; }
|
||||
bool toggleGps() override { gps_active ? sleep_gps() : start_gps(); return gps_active; }
|
||||
};
|
||||
|
||||
#ifdef DISPLAY_CLASS
|
||||
|
||||
Reference in New Issue
Block a user