chore: remove hardcoded aux1 debug hack (#5668)

This commit is contained in:
3djc
2024-11-24 08:56:10 +10:00
committed by GitHub
parent 6c2f97ca68
commit 740eb441c5
5 changed files with 0 additions and 30 deletions
-10
View File
@@ -486,20 +486,10 @@ void serialInit(uint8_t port_nr, int mode)
void initSerialPorts()
{
#if defined(DEBUG)
// AUX1 and serialPortStates was already initialized early in DEBUG config
for (uint8_t port_nr = 0; port_nr < MAX_AUX_SERIAL; port_nr++) {
if (port_nr != SP_AUX1) {
auto mode = getSerialPortMode(port_nr);
serialInit(port_nr, mode);
}
}
#else
for (uint8_t port_nr = 0; port_nr < MAX_AUX_SERIAL; port_nr++) {
auto mode = getSerialPortMode(port_nr);
serialInit(port_nr, mode);
}
#endif
}
int serialGetMode(uint8_t port_nr)