Replace IAS pending flags magic number with constants
@@ -333,7 +333,7 @@ void DeRestPluginPrivate::checkIasEnrollmentStatus(Sensor *sensor)
{
DBG_Printf(DBG_INFO_L2, "[IAS] Sensor enrolled\n");
}
- else if(item && item->toNumber() == 48 && iasZoneStatus.u8 == 1) // Sanity check
+ else if (item && item->toNumber() == (R_PENDING_WRITE_CIE_ADDRESS | R_PENDING_ENROLL_RESPONSE) && iasZoneStatus.u8 == 1) // Sanity check
{
DBG_Printf(DBG_INFO_L2, "[IAS] Sensor reporting enrolled. Clearing config pending...\n");
item->setValue(item->toNumber() & ~R_PENDING_WRITE_CIE_ADDRESS);
