Commit 42cb6452 authored by Sven Greiner's avatar Sven Greiner

Fix #4: Reverse levels if start high is enabled

This code should be optimized to save flash.
parent db85fe4f
......@@ -452,7 +452,12 @@ int main(void) {
break;
case kFixed:
output = (output % FIXED_SIZE) + 1;
output += options.start_high ? -1 : 1;
if (output > FIXED_SIZE) {
output = 1;
} else if (!output) {
output = FIXED_SIZE;
}
save_output();
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment