283 add new permision for access to environment sensors

이 커밋은 다음에 포함됨:
Normunds Gavars
2025-05-14 13:55:45 +03:00
부모 c69657a13b
커밋 8b3d60abe7
2개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
+1
파일 보기
@@ -4,6 +4,7 @@
#define TELEM_PERM_BASE 0x01 // 'base' permission includes battery
#define TELEM_PERM_LOCATION 0x02
#define TELEM_PERM_ENVIRONMENT 0x04 // permission to access environment sensors
#define TELEM_CHANNEL_SELF 1 // LPP data channel for 'self' device
+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