From 6478eda5814b011b1114fd7a22017c34033ef441 Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Wed, 3 May 2023 13:19:01 +0200 Subject: [PATCH] TS: pr_printTemplate(): send 'longFDcmd_set()' --- src/hwapi.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/hwapi.cpp b/src/hwapi.cpp index 33d5f04..879967c 100644 --- a/src/hwapi.cpp +++ b/src/hwapi.cpp @@ -3501,12 +3501,17 @@ bool hwapi::prn_sendDynamicPrnValues(uint8_t *dynPrnVal ) const } + bool hwapi::prn_printTemplate(uint8_t nrOftemplate) const // print one of the templates loaded by Json prior // nr = 1..32 { // return true if sending, false if cmd-stack is full - return sendFDcmd_set(152, 0,0, nrOftemplate,0,0,0); + + // 3.5.23: die dynVals und alle templates sollen am stück gesendet + uint8_t data[64]; + data[0]=nrOftemplate; + return longFDcmd_set(152, 0,0, 1, data); } void hwapi::log_getHoldAccountNumbers(uint8_t *nrOfVals, uint16_t *accNr ) const