return if serial not enabled

This commit is contained in:
Jim Colderwood 2024-04-04 11:39:04 +01:00
parent ad04e0faad
commit 8d6dda6d64

View File

@ -50,6 +50,8 @@ void courtesyTone(repeater* myrpt) {
} }
void serial_writer(serial* s, char* buff) { void serial_writer(serial* s, char* buff) {
if (!s->enable)
return;
Serial.write(buff); Serial.write(buff);
Serial.write('\n'); Serial.write('\n');
} }