Support for the ClimateGuard RadSens Geiger-Muller tube (#5425)

This commit is contained in:
jake-b
2024-11-24 07:53:52 -05:00
committed by GitHub
parent 4d69159e75
commit 932966b896
9 changed files with 154 additions and 10 deletions

View File

@@ -479,6 +479,16 @@ void ScanI2CTwoWire::scanPort(I2CPort port, uint8_t *address, uint8_t asize)
}
break;
case CGRADSENS_ADDR:
// Register 0x00 of the RadSens sensor contains is product identifier 0x7D
registerValue = getRegisterValue(ScanI2CTwoWire::RegisterLocation(addr, 0x00), 1);
if (registerValue == 0x7D) {
type = CGRADSENS;
LOG_INFO("ClimateGuard RadSens Geiger-Muller Sensor found");
break;
}
break;
default:
LOG_INFO("Device found at address 0x%x was not able to be enumerated", addr.address);
}