From a95217e24b598f181bceeaed8739baf9ca792f1d Mon Sep 17 00:00:00 2001 From: Jim Colderwood Date: Tue, 2 Apr 2024 16:54:27 +0100 Subject: [PATCH] No magic numbers! --- GB3TX/repeater.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GB3TX/repeater.ino b/GB3TX/repeater.ino index 664412f..be642cb 100644 --- a/GB3TX/repeater.ino +++ b/GB3TX/repeater.ino @@ -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; }