forked from GerhardHoffmann/DCLibraries
Add collected changes from T.Sax
This commit is contained in:
92
include/dump.txt
Executable file
92
include/dump.txt
Executable file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
void incTextBuffer(void)
|
||||
{
|
||||
runProc_prnSeqNr++;
|
||||
runProc_pointPrnTxt=0;
|
||||
if (runProc_prnSeqNr>127)
|
||||
runProc_prnSeqNr=127;
|
||||
runProc_prnCmdSeq[runProc_pointPrnCmd]=1;
|
||||
runProc_prnCmdPara[runProc_pointPrnCmd++]=runProc_prnSeqNr;
|
||||
}*/
|
||||
/*
|
||||
void T_runProc::subAppendNxtTxt(char *textLine)
|
||||
{
|
||||
// append given text to current sequence, respect max. sequ.length
|
||||
|
||||
// also send a command "print text buffer nn" ==1 once for each buffer
|
||||
//static uint8_t runProc_prnCmdSeq[512];
|
||||
//static uint8_t runProc_prnCmdPara[512];
|
||||
//static uint16_t runProc_pointPrnCmd;
|
||||
|
||||
int sl=strlen(textLine);
|
||||
if (sl>1024) sl=1024;
|
||||
textLine[sl]=0;
|
||||
if (runProc_prnSeqNr==0 && runProc_pointPrnTxt<3)
|
||||
{
|
||||
// then this is the very first text entry
|
||||
// store command to print this buffer
|
||||
runProc_prnCmdSeq[runProc_pointPrnCmd]=1;
|
||||
runProc_prnCmdPara[runProc_pointPrnCmd++]=runProc_prnSeqNr;
|
||||
}
|
||||
if ( (runProc_pointPrnTxt + sl) > 1023)
|
||||
{
|
||||
incTextBuffer();
|
||||
|
||||
}
|
||||
runProc_prnTextSeq[runProc_prnSeqNr].append(textLine);
|
||||
|
||||
//for (nn=0; nn<sl; nn++)
|
||||
//{
|
||||
//runProc_prnTextSeq[runProc_prnSeqNr][runProc_pointPrnTxt+nn]=textLine[nn];
|
||||
//}
|
||||
}*/
|
||||
|
||||
// qCritical() << "emitting signal payCancelled";
|
||||
// emit runProc_payCancelled();
|
||||
/*
|
||||
// gabs bei Szeged, jetzt nicht mehr:
|
||||
if (payInProg==8)
|
||||
{
|
||||
// coin checker faulty, cannot start
|
||||
if (hwapi_paymentStarted==1)
|
||||
{
|
||||
hwapi_paymentStarted=90; // stop due to error
|
||||
qCritical() << "emitting signal coinCollectionAborted 1";
|
||||
emit runProc_coinCollectionAborted();
|
||||
//sendFDcmd_set(156, 0,0, 2,0,0,0); // cancel payment
|
||||
}
|
||||
return 10; // error cannot start
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
/*
|
||||
static uint8_t Sdata_DeviceParameter[64];
|
||||
static uint8_t Sdata_DevParaLen;
|
||||
|
||||
uint8_t T_runProc::epi_store64BdevParameter(uint8_t length, uint8_t *buf)
|
||||
{
|
||||
// HWapi writes data to be stored
|
||||
uint8_t nn;
|
||||
for (nn=0; nn<length; nn++)
|
||||
Sdata_DeviceParameter[nn]=buf[nn];
|
||||
for (nn=length; nn<64; nn++)
|
||||
Sdata_DeviceParameter[nn]=0;
|
||||
|
||||
Sdata_DevParaLen=length;
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint8_t T_runProc::epi_restore64BdevParameter(uint8_t *length, uint8_t *buf)
|
||||
{
|
||||
|
||||
for (uint8_t nn=0; nn<Sdata_DevParaLen; nn++)
|
||||
buf[nn]=Sdata_DeviceParameter[nn];
|
||||
*length=Sdata_DevParaLen;
|
||||
|
||||
return 0;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user