Subversion Repositories HomeAutomation

Rev

Rev 2005 | Rev 2039 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 2005 Rev 2037
Line 176... Line 176...
176
   
176
   
177
    Node::Transition::iterator it2 = it1->second.find(event);
177
    Node::Transition::iterator it2 = it1->second.find(event);
178
   
178
   
179
    if (it2 == it1->second.end())
179
    if (it2 == it1->second.end())
180
    {
180
    {
181
        LOG.Warning("No transitions found for current state " + boost::lexical_cast<std::string>(this->state_) + " for event " + boost::lexical_cast<std::string>(event));
181
        //LOG.Warning("No transitions found for current state " + boost::lexical_cast<std::string>(this->state_) + " for event " + boost::lexical_cast<std::string>(event));
182
        return STATE_INVALID;
182
        return STATE_INVALID;
183
    }
183
    }
184
   
184
   
185
    return it2->second;
185
    return it2->second;
186
}
186
}
Line 201... Line 201...
201
        this->information_.valid_ = true;
201
        this->information_.valid_ = true;
202
    }
202
    }
203
   
203
   
204
    if (target_state == STATE_INVALID)
204
    if (target_state == STATE_INVALID)
205
    {
205
    {
206
        this->SendReset();
206
        //this->SendReset();
207
        target_state = STATE_NORM_OFFLINE;
207
        target_state = STATE_NORM_OFFLINE;
208
    }
208
    }
209
    else if (target_state == STATE_NO_CHANGE)
209
    else if (target_state == STATE_NO_CHANGE)
210
    {
210
    {
211
        return;
211
        return;