Compare commits

..

2 Commits

Author SHA1 Message Date
b960638e91 Increase timeout for DcDataValid to 5s ...
... was: 20ms x  50 = 1000ms = 1s
    new: 20ms x 250 = 5000ms = 5s
2025-07-10 15:12:48 +02:00
d93b406040 Fix: Bill recocnition ...
... "datIf::case 112"
2025-04-01 14:06:49 +02:00

View File

@@ -164,7 +164,7 @@ char T_datif::datif_cycleSend()
// supervise if DC data are valid
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!
datif_nowNewDyns=0;
@@ -1204,11 +1204,10 @@ char T_datif::loadRecDataFromFrame()
uitmp=0;
uit2=0;
}
if (uit2==3 || uit2==5 || uit2==10 || uit2==20 || uit2==40 || uit2==50 || uit2==100 || uit2==200 || uit2==500)
{
// valid coin
if ((newInsertedAmount != lastInsertedAmount) || uit2>0 )
//if ((newInsertedAmount != lastInsertedAmount) || uit2>0 )
if ((newInsertedAmount != lastInsertedAmount) || uit2==3
|| uit2==5 || uit2==10 || uit2==25 || uit2==40
|| uit2==50 || uit2==100 || uit2==200 || uit2==500 )
{
gpi_storeCurrentPayment(newInsertedAmount, uitmp, uit2);
emit datif_gotNewCoin(); // OR BILL if (uitmp & 0x8000)>0
@@ -1216,7 +1215,6 @@ char T_datif::loadRecDataFromFrame()
lastInsertedAmount=newInsertedAmount;
//qCritical()<<"datif 112 store and emit new coin "<<newInsertedAmount<<" "<<uitmp<<" "<<uit2;
}
}
break;