forked from GerhardHoffmann/DCLibraries
		
	diagnosis
This commit is contained in:
		@@ -1984,7 +1984,7 @@ void epi_iniVRstorage(void)
 | 
			
		||||
void gpi_storeVaultRecord(uint8_t blkNr, uint8_t *data )
 | 
			
		||||
{
 | 
			
		||||
    uint16_t start=blkNr, ii;
 | 
			
		||||
    //qDebug()<<"storing vault data "<<blkNr;
 | 
			
		||||
    qDebug()<<"storing vault data "<<blkNr;
 | 
			
		||||
    SharedMem::write()->store_gotNrBlocksOfVaultRec |= (1<<start);  // setze pro Block ein bit, wir brauchen block 0...5
 | 
			
		||||
                                                // also muss store_gotNrBlocksOfVaultRec auf 0x1F stehen
 | 
			
		||||
    start<<=6;      // *64
 | 
			
		||||
@@ -2054,13 +2054,50 @@ uint16_t epi_getNrOfCoinsInCashBox(void)
 | 
			
		||||
 | 
			
		||||
void gpi_storeDcDataValid(bool isVal)
 | 
			
		||||
{
 | 
			
		||||
    SharedMem::write()->store_DcDataAreValid = isVal;
 | 
			
		||||
    bool now=SharedMem::read()->store_DcDataAreValid;
 | 
			
		||||
    if (isVal != now)
 | 
			
		||||
    {
 | 
			
		||||
        SharedMem::write()->store_DcDataAreValid = isVal;
 | 
			
		||||
#ifdef THIS_IS_CA_MASTER
 | 
			
		||||
        qDebug()<<"master lib sets DcDataValid to "<<isVal;
 | 
			
		||||
#else
 | 
			
		||||
        qDebug()<<"slave lib sets DcDataValid to "<<isVal;
 | 
			
		||||
#endif
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void epi_setDcDataValid(void)
 | 
			
		||||
{
 | 
			
		||||
    bool now=SharedMem::read()->store_DcDataAreValid;
 | 
			
		||||
    if (now==false)
 | 
			
		||||
    {
 | 
			
		||||
        SharedMem::write()->store_DcDataAreValid = true;
 | 
			
		||||
#ifdef THIS_IS_CA_MASTER
 | 
			
		||||
        qDebug()<<"master lib SET DcDataValid";
 | 
			
		||||
#else
 | 
			
		||||
        qDebug()<<"slave lib SET DcDataValid";
 | 
			
		||||
#endif
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void epi_resetDcDataValid(void)
 | 
			
		||||
{
 | 
			
		||||
    bool now=SharedMem::read()->store_DcDataAreValid;
 | 
			
		||||
    if (now==true)
 | 
			
		||||
    {
 | 
			
		||||
        SharedMem::write()->store_DcDataAreValid = false;
 | 
			
		||||
#ifdef THIS_IS_CA_MASTER
 | 
			
		||||
        qDebug()<<"master lib RESET DcDataValid";
 | 
			
		||||
#else
 | 
			
		||||
        qDebug()<<"slave lib RESET DcDataValid";
 | 
			
		||||
#endif
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool epi_areDcDataValid()
 | 
			
		||||
{
 | 
			
		||||
    return SharedMem::read()->store_DcDataAreValid;
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// ....................................................................................
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user