Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
b960638e91
|
|||
d93b406040
|
@@ -164,7 +164,7 @@ char T_datif::datif_cycleSend()
|
|||||||
|
|
||||||
// supervise if DC data are valid
|
// supervise if DC data are valid
|
||||||
datif_noResponseCtr++; // inc every 20ms
|
datif_noResponseCtr++; // inc every 20ms
|
||||||
if (datif_noResponseCtr>50) // no life sign from device controller (DC) for about a sec
|
if (datif_noResponseCtr>250) // no life sign from device controller (DC) for about 20ms x 250 = 5000ms = 5s
|
||||||
{
|
{
|
||||||
epi_resetDcDataValid(3); // DC data has not updated for >=5s -> no longer valid!
|
epi_resetDcDataValid(3); // DC data has not updated for >=5s -> no longer valid!
|
||||||
datif_nowNewDyns=0;
|
datif_nowNewDyns=0;
|
||||||
@@ -1204,18 +1204,16 @@ char T_datif::loadRecDataFromFrame()
|
|||||||
uitmp=0;
|
uitmp=0;
|
||||||
uit2=0;
|
uit2=0;
|
||||||
}
|
}
|
||||||
|
//if ((newInsertedAmount != lastInsertedAmount) || uit2>0 )
|
||||||
if (uit2==3 || uit2==5 || uit2==10 || uit2==20 || uit2==40 || uit2==50 || uit2==100 || uit2==200 || uit2==500)
|
if ((newInsertedAmount != lastInsertedAmount) || uit2==3
|
||||||
{
|
|| uit2==5 || uit2==10 || uit2==25 || uit2==40
|
||||||
// valid coin
|
|| uit2==50 || uit2==100 || uit2==200 || uit2==500 )
|
||||||
if ((newInsertedAmount != lastInsertedAmount) || uit2>0 )
|
{
|
||||||
{
|
gpi_storeCurrentPayment(newInsertedAmount, uitmp, uit2);
|
||||||
gpi_storeCurrentPayment(newInsertedAmount, uitmp, uit2);
|
emit datif_gotNewCoin(); // OR BILL if (uitmp & 0x8000)>0
|
||||||
emit datif_gotNewCoin(); // OR BILL if (uitmp & 0x8000)>0
|
//qDebug()<<"emit new coin";
|
||||||
//qDebug()<<"emit new coin";
|
lastInsertedAmount=newInsertedAmount;
|
||||||
lastInsertedAmount=newInsertedAmount;
|
//qCritical()<<"datif 112 store and emit new coin "<<newInsertedAmount<<" "<<uitmp<<" "<<uit2;
|
||||||
//qCritical()<<"datif 112 store and emit new coin "<<newInsertedAmount<<" "<<uitmp<<" "<<uit2;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user