Rev 1876 | Rev 2037 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1876 | Rev 1911 | ||
|---|---|---|---|
| Line 216... | Line 216... | ||
| 216 | unsigned int checksum = boost::lexical_cast<unsigned int>(variables["Data"]); |
216 | unsigned int checksum = boost::lexical_cast<unsigned int>(variables["Data"]); |
| 217 | 217 | ||
| 218 | if (this->expected_ack_data_ != checksum) |
218 | if (this->expected_ack_data_ != checksum) |
| 219 | { |
219 | { |
| 220 | LOG.Warning("Checksum received in ACK was incorrect got " + boost::lexical_cast<std::string>(checksum) + " expected " + boost::lexical_cast<std::string>(this->expected_ack_data_) + ", aborting..."); |
220 | LOG.Warning("Checksum received in ACK was incorrect got " + boost::lexical_cast<std::string>(checksum) + " expected " + boost::lexical_cast<std::string>(this->expected_ack_data_) + ", aborting..."); |
| - | 221 | ||
| - | 222 | this->SendReset(); |
|
| - | 223 | ||
| - | 224 | target_state = STATE_NORM_OFFLINE; |
|
| 221 | } |
225 | } |
| 222 | else if (this->state_ == STATE_BPGM_END) |
226 | else if (this->state_ == STATE_BPGM_END) |
| 223 | { |
227 | { |
| 224 | float speed = (float)this->code_->GetLength() / (float)(time(NULL) - this->program_start_time_); |
228 | float speed = (float)this->code_->GetLength() / (float)(time(NULL) - this->program_start_time_); |
| 225 | 229 | ||