Compare commits

..

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

View File

@ -1204,16 +1204,18 @@ 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); {
emit datif_gotNewCoin(); // OR BILL if (uitmp & 0x8000)>0 gpi_storeCurrentPayment(newInsertedAmount, uitmp, uit2);
//qDebug()<<"emit new coin"; emit datif_gotNewCoin(); // OR BILL if (uitmp & 0x8000)>0
lastInsertedAmount=newInsertedAmount; //qDebug()<<"emit new coin";
//qCritical()<<"datif 112 store and emit new coin "<<newInsertedAmount<<" "<<uitmp<<" "<<uit2; lastInsertedAmount=newInsertedAmount;
//qCritical()<<"datif 112 store and emit new coin "<<newInsertedAmount<<" "<<uitmp<<" "<<uit2;
}
} }
break; break;