mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-07 20:56:11 +00:00
RAK4631: Add RAK12500 GPS support
Added RAK12500 GPS support Added socket scan capability to determine which socket the GPS is connected to T-beam supreme: added conditional to displaying location data to only when gps is active
This commit is contained in:
@@ -336,7 +336,7 @@ bool TbeamSupSensorManager::begin() {
|
||||
}
|
||||
|
||||
bool TbeamSupSensorManager::querySensors(uint8_t requester_permissions, CayenneLPP& telemetry) {
|
||||
if (requester_permissions & TELEM_PERM_LOCATION) { // does requester have permission?
|
||||
if (requester_permissions & TELEM_PERM_LOCATION && gps_active) { // does requester have permission?
|
||||
telemetry.addGPS(TELEM_CHANNEL_SELF, node_lat, node_lon, node_altitude);
|
||||
}
|
||||
if (requester_permissions & TELEM_PERM_ENVIRONMENT && bme_active) { // does requester have permission?
|
||||
|
||||
Reference in New Issue
Block a user