From 2ebd17fe8ceed57a293297e0e07801d07d987b98 Mon Sep 17 00:00:00 2001 From: Alessio Igor Bogani <alessio.bogani@elettra.eu> Date: Wed, 31 Aug 2022 16:30:51 +0200 Subject: [PATCH] Use a shorter form fro vector initialization --- src/Agilent4uhv.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Agilent4uhv.cpp b/src/Agilent4uhv.cpp index 8a278d4..b650d7d 100644 --- a/src/Agilent4uhv.cpp +++ b/src/Agilent4uhv.cpp @@ -1813,9 +1813,7 @@ void* Agilent4uhvWorker::run_undetached(void * /*ptr*/) /* Restart from begin */ it = device->polled_windows.begin(); /* Set UNKNOWN state */ - static const int m[] = {STX, ADDR, '2', '0', '5', READ_WINDOW, - '1', '1', '1', '1', '1', '1', ETX, 0x38, 0x34}; - vector<unsigned char> message(m, m + sizeof(m) / sizeof(m[0])); + vector<unsigned char> message(6, '1'); device->cache.set(205, message); assert(false); } -- GitLab