Fix flag setting logic
@@ -1374,8 +1374,8 @@ int DeRestPluginPrivate::changeSensorConfig(const ApiRequest &req, ApiResponse &
hostFlags = val.value.u32;
}
- // clear `set off` (0x10) and `boost` (0x04) flags
- hostFlags &= ~(0x10 | 0x04);
+ hostFlags &= ~0x04; // clear `boost` flag
+ hostFlags |= 0x10; // set `disable off` flag
ResourceItem *configModeItem = sensor->item(RConfigMode);
if (configModeItem && configModeItem->setValue( QString::fromUtf8("auto") ))
