Fix: Bill recocnition ...

... "datIf::case 112"
This commit is contained in:
Siegfried Siegert 2025-04-01 14:06:49 +02:00
parent d5585cda3f
commit d93b406040
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -1204,11 +1204,10 @@ 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
@ -1216,7 +1215,6 @@ 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;