Commit 86cfebbe authored by David Griffith's avatar David Griffith

Now star sets slow tones, hash sets fast tones. No more toggling length.

parent bcf6418e
......@@ -416,7 +416,7 @@ int main(void)
sleep_ms(66);
}
}
/* Same goes if the tone length is bogus. */
if ((tone_length != TONE_LENGTH_SLOW) && (tone_length != TONE_LENGTH_FAST)) {
tone_length = TONE_LENGTH_FAST;
for (key = 0; key < 4; key++) {
......@@ -445,11 +445,8 @@ int main(void)
case KEY_3: tone_mode = MODE_REDBOX; break;
case KEY_4: tone_mode = MODE_GREENBOX; break;
case KEY_5: tone_mode = MODE_PULSE; break;
case KEY_HASH: if (tone_length == TONE_LENGTH_FAST)
tone_length = TONE_LENGTH_SLOW;
else
tone_length = TONE_LENGTH_FAST;
break;
case KEY_STAR: tone_length = TONE_LENGTH_SLOW; break;
case KEY_HASH: tone_length = TONE_LENGTH_FAST; break;
default: play(1000, STARTUP_TONE, 0);
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