Compare commits

...

4 Commits

Author SHA1 Message Date
SiegfriedSiegert 620efc3a49 update printQR method 2026-06-08 08:47:43 +02:00
SiegfriedSiegert 60234edc88 Merge branch 'pu/TSax' 2025-11-10 10:26:32 +01:00
SiegfriedSiegert d22746c5ff Fix: unresolved symbol 2025-10-23 09:50:14 +02:00
SiegfriedSiegert 93c5752a6d Fix: resolve unresolved Symbol 2025-10-23 09:14:55 +02:00
3 changed files with 35 additions and 4 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ class T_runProc : public QObject
private slots:
void runProc_slotProcess(void);
bool bl_performComplStart(void);
bool bl_waitForRdyMsg(void);
//bool bl_waitForRdyMsg(void); <-- marked as not used by TS
public:
T_runProc();
+1 -1
View File
@@ -330,7 +330,7 @@ uint8_t dcBL_getResponse(uint8_t *respBuff)
}
if (recLen>=150)
{
dcBL_writeText("dcBL rec.buff. overflow");
//dcBL_writeText("dcBL rec.buff. overflow");
epi_clrRawReceivedString();
recLen=0;
}
+33 -2
View File
@@ -1920,8 +1920,39 @@ void hwapi::prn_printBarcode(uint8_t kindOf, uint8_t withText, uint8_t offset,
void hwapi::prn_sendQRdata(QByteArray *buf) const
{
// maximal 150 alphanummeric bytes
buf->clear();
// buf must be 256byte long
// printer can use maximal 150 alphanummeric bytes
// but we send 256byte for reserve
//buf->clear();
QByteArray dataPart1, dataPart2, dataPart3, dataPart4;
int bufLength=buf->length();
int toFill=0;
// make sure that input buffer is long enough because program crashes when reading too much!
if (bufLength<256)
{
toFill=256-bufLength;
//toFill+=2; // just some byte more to be sure
buf->append(toFill, 0);
}
dataPart1.clear();
dataPart2.clear();
dataPart3.clear();
dataPart4.clear();
dataPart4=buf->right(64);
buf->chop(64);
dataPart3=buf->right(64);
buf->chop(64);
dataPart2=buf->right(64);
buf->chop(64);
dataPart1=buf->right(64);
longFDcmd_set(CMD2DC_STOR_QR_DATA, 0, 0, 64, &dataPart1);
longFDcmd_set(CMD2DC_STOR_QR_DATA, 0, 1, 64, &dataPart2);
longFDcmd_set(CMD2DC_STOR_QR_DATA, 0, 2, 64, &dataPart3);
longFDcmd_set(CMD2DC_STOR_QR_DATA, 0, 3, 64, &dataPart4);
}
void hwapi::prn_printQRcode(void) const