283 add new permision for access to environment sensors

This commit is contained in:
Normunds Gavars committed 2025-05-14 13:55:45 +03:00
1 parent 016072e45a
commit 2b91bde4a9
2 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -103,7 +103,7 @@ bool PromicroSensorManager::begin() {
bool PromicroSensorManager::querySensors(uint8_t requester_permissions, CayenneLPP& telemetry) {
// TODO: what is the correct permission here?
if (requester_permissions && TELEM_PERM_BASE) {
if (requester_permissions && TELEM_PERM_ENVIRONMENT) {
if (INA3221initialized) {
for(int i = 0; i < 3; i++) {
// add only enabled INA3221 channels to telemetry