t-beam supreme: fixes and cleanup

Reverted the SensorManager changes
Moved BME into TbeamSupSensorManager
Moved printBMEValues into TbeamSupSensorManager
Moved scanDevices out of TBeamS3SupremeBoard
This commit is contained in:
cod3doomy 2025-05-20 11:37:41 -07:00
parent 4990fe40e7
commit 4f503de743
4 changed files with 17 additions and 11 deletions

View file

@ -10,10 +10,10 @@
class SensorManager {
public:
double node_lat, node_lon, node_temp, node_hum, node_pres; // modify these, if you want to affect Advert location
double node_lat, node_lon; // modify these, if you want to affect Advert location
double node_altitude; // altitude in meters
SensorManager() { node_lat = 0; node_lon = 0; node_altitude = 0; node_temp = 0; node_hum = 0; node_pres = 0;}
SensorManager() { node_lat = 0; node_lon = 0; node_altitude = 0;}
virtual bool begin() { return false; }
virtual bool querySensors(uint8_t requester_permissions, CayenneLPP& telemetry) { return false; }
virtual void loop() { }

View file

@ -55,9 +55,7 @@ class TBeamS3SupremeBoard : public ESP32Board {
XPowersAXP2101 PMU;
public:
#ifdef MESH_DEBUG
void scanDevices(TwoWire *w);
void printPMU();
void printBMEValues();
#endif
bool power_init();