cooling/cooling.cc
/// Green Off : OFF
/// Green Solid : rsked playing
/// Green Flashing : paused
///
/// Red Solid : rsked not running
/// Red Flashing : rsked error
///
Green Off : OFF
Green Solid : rsked playing
Green Flashing : paused

Red Solid : rsked not running
Red Flashing : rsked error
Green Off : OFF Green Solid : rsked playing Green Flashing : paused Red Solid : rsked not running Red Flashing : rsked error
void Cooling::update_leds()
{
    namespace pt = boost::posix_time;
    if (m_rsked_enabled) {
        switch (get_status())
        {
        case RSK_OFF:
            illuminate_grn(false);
            break;
        case RSK_PLAYING:
            illuminate_grn(true);
            break;
        case RSK_PAUSED:
        {
            pt::ptime tt(pt::microsec_clock::universal_time());
            pt::time_duration dt = (tt - m_last_blink);
            if (dt >= pt::seconds(2)) {
                toggle_grn();
                m_last_blink = tt;
            }
        }
        break;
        default:
            break;
        }
    }
    illuminate_red(not m_rsked_cm->running());
}
void Cooling :: update_leds ( ) { namespace pt = boost :: posix_time ; if ( m_rsked_enabled ) { switch ( get_status ( ) ) { case RSK_OFF : illuminate_grn ( false ) ; break ; case RSK_PLAYING : illuminate_grn ( true ) ; break ; case RSK_PAUSED : { pt :: ptime tt ( pt :: microsec_clock :: universal_time ( ) ) ; pt :: time_duration dt = ( tt - m_last_blink ) ; if ( dt >= pt :: seconds ( 2 ) ) { toggle_grn ( ) ; m_last_blink = tt ; } } break ; default : break ; } } illuminate_red ( not m_rsked_cm -> running ( ) ) ; }
Green Off : OFF
Green Solid : rsked playing
Green Flashing : paused
Green Off : OFF Green Solid : rsked playing Green Flashing : paused