Subversion Repositories HomeAutomation

Rev

Rev 2164 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 2164 Rev 2165
Line 264... Line 264...
264
        {
264
        {
265
            this->SendListRequest();
265
            this->SendListRequest();
266
        }
266
        }
267
        else if (target_state == STATE_BPGM_OFFLINE || target_state == STATE_APGM_OFFLINE)
267
        else if (target_state == STATE_BPGM_OFFLINE || target_state == STATE_APGM_OFFLINE)
268
        {
268
        {
-
 
269
            this->current_offset_ = 0;
269
            if (event != EVENT_BIOS_START)
270
            if (event != EVENT_BIOS_START)
270
            {
271
            {
271
                this->SendReset();
272
                this->SendReset();
272
            }
273
            }
273
        }
274
        }
Line 442... Line 443...
442
    }
443
    }
443
}
444
}
444
 
445
 
445
unsigned int Node::GetProgramProgress()
446
unsigned int Node::GetProgramProgress()
446
{
447
{
447
    //100 * current_offset_ / this->code_->GetLength()
448
    //if ( this->state_ == STATE_APGM_START || this->state_ == STATE_BPGM_START || this->state_ == STATE_APGM_DATA || this->state_ == STATE_BPGM_DATA || this->state_ == STATE_APGM_END || this->state_ == STATE_BPGM_END || this->state_ == STATE_BPGM_COPY )
-
 
449
    //{
448
    return 100 * this->current_offset_ / this->code_->GetLength();
450
        return 100 * this->current_offset_ / this->code_->GetLength();
-
 
451
    //}
-
 
452
    //else
-
 
453
    //{
-
 
454
    //  return 0;
-
 
455
    //}
449
}
456
}
450
 
457
 
451
}; // namespace control
458
}; // namespace control
452
}; // namespace atom
459
}; // namespace atom