mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
t1000e: gps toggle not using board class
This commit is contained in:
parent
8765b3d040
commit
588a986976
8 changed files with 14 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue