| 280 | } |
| 281 | |
| 282 | bool ShadingControl_Impl::setSetpoint(double setpoint) { |
| 283 | bool result = false; |
| 284 | std::string shadingControlType = this->shadingControlType(); |
| 285 | if (ShadingControl_Impl::isControlTypeValueNeedingSetpoint1(shadingControlType)) { |
| 286 | result = setDouble(OS_ShadingControlFields::Setpoint, setpoint); |
| 287 | } else { |
| 288 | LOG(Warn, briefDescription() << " has a Shading Control Type '" << shadingControlType << "' which does not require a Setpoint"); |
| 289 | } |
| 290 | return result; |
| 291 | } |
| 292 | |
| 293 | void ShadingControl_Impl::resetSetpoint() { |
| 294 | std::string shadingControlType = this->shadingControlType(); |