From cc518e457757f1a6355770c314164bcafbd0ed10 Mon Sep 17 00:00:00 2001 From: Steffen Pohle Date: Sun, 29 Jan 2023 20:16:01 +0100 Subject: [PATCH] adding errormessage --- posctl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posctl.cc b/posctl.cc index 6f9bfcc..5c909da 100644 --- a/posctl.cc +++ b/posctl.cc @@ -639,7 +639,7 @@ void PosCtl::OutputWriteValue (int axis, double value) { std::string s = setlocale(LC_ALL, NULL); setlocale (LC_ALL, "C"); - snprintf(outbuf, 254, "R%c%c%08.4f#\n", (axis == 0 ? 'A' : 'R'), + snprintf(outbuf, 254, ":R%c%c%08.4f#\n", (axis == 0 ? 'A' : 'R'), (value < 0 ? '-' : '+'), value); outbuf[254] = 0;