10.12.2010 - light modifies in headers

This commit is contained in:
peri4
2010-12-10 23:42:53 +03:00
parent 480eb64f62
commit 8926fe2f69
8 changed files with 14 additions and 16 deletions

View File

@@ -39,7 +39,7 @@ void PIProtocol::init() {
net_diag = PIProtocol::Unknown;
cur_pckt = 0;
timer = 0;
sendtimer = new PITimer(this, run);
sendtimer = new PITimer(run, this);
wrong_count = receive_count = send_count = 0;
immediateFreq = integralFreq = 0.f;
headerPtr = dataPtr = sendDataPtr = 0;
@@ -68,7 +68,7 @@ void PIProtocol::setExpectedFrequency(float frequency)
if (exp_freq < 3.33) pckt_cnt_max = 10;
else pckt_cnt_max = 3 * (int)exp_freq;
last_packets.resize(pckt_cnt_max);
timer = new PITimer(this, diag_event);
timer = new PITimer(diag_event, this);
timer->start(1000. / exp_freq);
timer->reset();
}