----------------------------------------------------------------------------- Get the values of a switch point -----------------------------------------------------------------------------
| 286 | // Get the values of a switch point |
| 287 | //----------------------------------------------------------------------------- |
| 288 | bool ValueSchedule::GetSwitchPoint |
| 289 | ( |
| 290 | uint8 const _idx, |
| 291 | uint8* o_hours, |
| 292 | uint8* o_minutes, |
| 293 | int8* o_setback |
| 294 | )const |
| 295 | { |
| 296 | if( _idx >= m_numSwitchPoints ) |
| 297 | { |
| 298 | // _idx is out of range |
| 299 | return false; |
| 300 | } |
| 301 | |
| 302 | if( o_hours ) |
| 303 | { |
| 304 | *o_hours = m_switchPoints[_idx].m_hours; |
| 305 | } |
| 306 | |
| 307 | if( o_minutes ) |
| 308 | { |
| 309 | *o_minutes = m_switchPoints[_idx].m_minutes; |
| 310 | } |
| 311 | |
| 312 | if( o_setback ) |
| 313 | { |
| 314 | *o_setback = m_switchPoints[_idx].m_setback; |
| 315 | } |
| 316 | |
| 317 | return true; |
| 318 | } |
| 319 | |
| 320 | //----------------------------------------------------------------------------- |
| 321 | // <ValueSchedule::FindSwitchPoint> |