Rev 1665 | Rev 1887 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1665 | Rev 1666 | ||
|---|---|---|---|
| Line 168... | Line 168... | ||
| 168 | void Manager::SlotOnNewState(Node::Id node_id, Node::State current_state, Node::State target_state) |
168 | void Manager::SlotOnNewState(Node::Id node_id, Node::State current_state, Node::State target_state) |
| 169 | { |
169 | { |
| 170 | if (target_state != Node::STATE_NORM_INITIALIZED) |
170 | if (target_state != Node::STATE_NORM_INITIALIZED) |
| 171 | { |
171 | { |
| 172 | this->RemoveModules(node_id); |
172 | this->RemoveModules(node_id); |
| - | 173 | } |
|
| 173 | 174 | ||
| 174 | if (current_state != target_state) |
175 | if (current_state != target_state) |
| 175 | { |
176 | { |
| 176 |
|
177 | this->signal_on_node_change_(node_id, (target_state == Node::STATE_NORM_INITIALIZED || target_state == Node::STATE_NORM_LIST || target_state == Node::STATE_NORM_ONLINE)); |
| 177 | } |
- | |
| 178 | } |
- | |
| 179 | else |
- | |
| 180 | { |
- | |
| 181 | if (current_state != target_state) |
- | |
| 182 | { |
- | |
| 183 | this->signal_on_node_change_(node_id, true); |
- | |
| 184 | } |
- | |
| 185 | } |
178 | } |
| 186 | 179 | ||
| 187 | if (target_state == Node::STATE_BPGM_OFFLINE || target_state == Node::STATE_APGM_OFFLINE) |
180 | if (target_state == Node::STATE_BPGM_OFFLINE || target_state == Node::STATE_APGM_OFFLINE) |
| 188 | { |
181 | { |
| 189 | this->active_programming_node_id_ = node_id; |
182 | this->active_programming_node_id_ = node_id; |