fix steady slowdown

This commit is contained in:
Brad Grantham 2020-01-20 23:11:39 -08:00
parent 0a9399d646
commit ef922fa355

View File

@ -1734,10 +1734,12 @@ void map_history_to_lines(const ModeHistory& history, unsigned long long current
map_mode_to_lines(current, byte2); map_mode_to_lines(current, byte2);
} }
if(!history.empty()) if(!history.empty()) {
most_recent_modepoint = history[history.size() - 1]; most_recent_modepoint = history[history.size() - 1];
}
map_mode_to_lines(most_recent_modepoint, current_byte); 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) void iterate(const ModeHistory& history, unsigned long long current_byte, float megahertz)