From ef922fa3555a5e0b11eb28f126ebfd3c2e7347fa Mon Sep 17 00:00:00 2001 From: Brad Grantham Date: Mon, 20 Jan 2020 23:11:39 -0800 Subject: [PATCH] fix steady slowdown --- interface.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/interface.cpp b/interface.cpp index 495e0e6..899e6b4 100644 --- a/interface.cpp +++ b/interface.cpp @@ -1734,10 +1734,12 @@ void map_history_to_lines(const ModeHistory& history, unsigned long long current map_mode_to_lines(current, byte2); } - if(!history.empty()) + if(!history.empty()) { most_recent_modepoint = history[history.size() - 1]; + } map_mode_to_lines(most_recent_modepoint, current_byte); + most_recent_modepoint = { current_byte, get<1>(most_recent_modepoint) }; } void iterate(const ModeHistory& history, unsigned long long current_byte, float megahertz)