t1000e: gps toggle not using board class

This commit is contained in:
Florent de Lamotte 2025-06-19 17:26:58 +02:00
parent 8765b3d040
commit 588a986976
8 changed files with 14 additions and 14 deletions

View file

@ -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;

View file

@ -66,8 +66,6 @@ public:
return 0;
}
virtual bool toggleGps() override;
void powerOff() override {
#ifdef HAS_GPS
digitalWrite(GPS_VRTC_EN, LOW);

View file

@ -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