From 4cc964e8c29416a27af5ef25648378650f923833 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Sun, 10 Dec 2023 14:43:57 +0100 Subject: [PATCH] Include memory for all json file names. --- include/shared_mem_buffer.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/include/shared_mem_buffer.h b/include/shared_mem_buffer.h index 3a3d8f6..668ab58 100644 --- a/include/shared_mem_buffer.h +++ b/include/shared_mem_buffer.h @@ -303,7 +303,18 @@ struct SharedMem // download of device controller and json files struct DCDownload { - char m_filename[512]; + enum class FILE_INDEX { + DC_BINARY = 0, DC2C_CASH = 1, DC2C_CONF = 2, DC2C_SERIAL=3, + DC2C_PRINT_01, DC2C_PRINT_02, DC2C_PRINT_03, DC2C_PRINT_04, + DC2C_PRINT_05, DC2C_PRINT_06, DC2C_PRINT_07, DC2C_PRINT_08, + DC2C_PRINT_09, DC2C_PRINT_10, DC2C_PRINT_11, DC2C_PRINT_12, + DC2C_PRINT_13, DC2C_PRINT_14, DC2C_PRINT_15, DC2C_PRINT_16, + DC2C_PRINT_17, DC2C_PRINT_18, DC2C_PRINT_19, DC2C_PRINT_20, + DC2C_PRINT_21, DC2C_PRINT_22, DC2C_PRINT_23, DC2C_PRINT_24, + DC2C_PRINT_25, DC2C_PRINT_26, DC2C_PRINT_27, DC2C_PRINT_28, + DC2C_PRINT_29, DC2C_PRINT_30, DC2C_PRINT_31, DC2C_PRINT_32 + }; + char m_filename[(int)FILE_INDEX::DC2C_PRINT_32][512]; std::atomic_ushort m_totalBlocks; std::atomic_ushort m_currentblockNumber; std::atomic_bool m_requested{false};