Compare commits

..

No commits in common. "master" and "master" have entirely different histories.

View File

@ -1204,10 +1204,11 @@ char T_datif::loadRecDataFromFrame()
uitmp=0; uitmp=0;
uit2=0; uit2=0;
} }
//if ((newInsertedAmount != lastInsertedAmount) || uit2>0 )
if ((newInsertedAmount != lastInsertedAmount) || uit2==3 if (uit2==3 || uit2==5 || uit2==10 || uit2==20 || uit2==40 || uit2==50 || uit2==100 || uit2==200 || uit2==500)
|| uit2==5 || uit2==10 || uit2==25 || uit2==40 {
|| uit2==50 || uit2==100 || uit2==200 || uit2==500 ) // valid coin
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
@ -1215,6 +1216,7 @@ char T_datif::loadRecDataFromFrame()
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;