diff options
author | Stefan Pöschel <github@basicmaster.de> | 2016-05-05 14:58:28 +0200 |
---|---|---|
committer | Stefan Pöschel <github@basicmaster.de> | 2016-05-05 14:58:28 +0200 |
commit | 4e57953ac754f8c0e0feb4e8218ab1aac1fb5c55 (patch) | |
tree | 5405b15fc5370de877d41da42931f38e1d0e8bd3 | |
parent | 7062caa1f092aa3cdd1ae27812be8cdb3f50d7c9 (diff) | |
download | ODR-PadEnc-4e57953ac754f8c0e0feb4e8218ab1aac1fb5c55.tar.gz ODR-PadEnc-4e57953ac754f8c0e0feb4e8218ab1aac1fb5c55.tar.bz2 ODR-PadEnc-4e57953ac754f8c0e0feb4e8218ab1aac1fb5c55.zip |
DLS: use common toggle flag for both DL and DL Plus msgs/cmds
-rw-r--r-- | src/mot-encoder.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mot-encoder.cpp b/src/mot-encoder.cpp index 28e6ce8..03bdfa6 100644 --- a/src/mot-encoder.cpp +++ b/src/mot-encoder.cpp @@ -466,7 +466,6 @@ struct DL_STATE { typedef uint8_vector_t pad_t; static bool dls_toggle = false; -static bool dl_plus_toggle = false; static DL_STATE dl_state_prev; @@ -1453,7 +1452,7 @@ DATA_GROUP* createDynamicLabelPlus(const DL_STATE& dl_state) { // prefix: toggle? + first seg + last seg + command flag + command seg_data[0] = - (dl_plus_toggle ? (1 << 7) : 0) + + (dls_toggle ? (1 << 7) : 0) + (1 << 6) + (1 << 5) + (1 << 4) + @@ -1667,8 +1666,6 @@ void writeDLS(int output_fd, const std::string& dls_file, uint8_t charset, bool remove_label_dg = createDynamicLabelCommand(DLS_CMD_REMOVE_LABEL); dls_toggle = !dls_toggle; // indicate changed text - if (dl_state.dl_plus_enabled) - dl_plus_toggle = !dl_plus_toggle; dl_state_prev = dl_state; } |