No magic numbers!

This commit is contained in:
Jim Colderwood 2024-04-02 16:54:27 +01:00
parent 31933377cb
commit a95217e24b

View File

@ -36,12 +36,12 @@ bool busy(repeater* myrpt) {
void courtesyTone(repeater* myrpt) {
switch(myrpt->params.courtesy) {
case 0:
case TONE:
myrpt->last == TT ? tone(3, myrpt->params.pip_pitch, myrpt->params.pip_length) : tone(3, myrpt->params.pip_gw_pitch, myrpt->params.pip_gw_length);
if (TAILPIPS)
delay(150);
break;
case 1:
case CW:
myrpt->last == TT ? sendChar(myrpt->params.pip_speed,myrpt->params.pip_pitch,myrpt->params.pip_letter) : sendChar(myrpt->params.pip_speed,myrpt->params.pip_gw_pitch, myrpt->params.pip_gw_letter);
break;
}