From 60c48588b09dd680d6d92ab6944904dc6a28ca90 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 13 Apr 2023 13:54:15 +0200 Subject: [PATCH] Fixed template number: cannot be 0 --- src/hwapi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hwapi.cpp b/src/hwapi.cpp index 2d02096..e3efeba 100644 --- a/src/hwapi.cpp +++ b/src/hwapi.cpp @@ -415,7 +415,7 @@ bool hwapi::dc_updatePrinterTemplate(enum FileTypeJson type, int nrOfTemplate, QString const &fname) const { if ((type == FileTypeJson::PRINTER) && - (nrOfTemplate >= 0 && nrOfTemplate <= 32)) { + (nrOfTemplate >= 1 && nrOfTemplate <= 32)) { int nTry = 50; while (!sys_ready4sending()) { // wait max. 5 seconds