283 add new permision for access to environment sensors

This commit is contained in:
Normunds Gavars
2025-05-14 13:55:45 +03:00
والد c69657a13b
کامیت 8b3d60abe7
2فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
+1 -1
مشاهده پرونده
@@ -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