Skip to content

Commit 9681df0

Browse files
committed
Removed stray code causing compilation failure.
1 parent 0588eea commit 9681df0

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

thc.c

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -554,35 +554,6 @@ static void plasma_settings_save (void)
554554
hal.nvs.memcpy_to_nvs(nvs_address, (uint8_t *)&plasma, sizeof(plasma_settings_t), true);
555555
}
556556

557-
static uint8_t ioport_find_free (io_port_type_t type, io_port_direction_t dir, char *description)
558-
{
559-
uint8_t port;
560-
bool found = false;
561-
xbar_t *pin;
562-
563-
if(description) {
564-
port = ioports_available(type, dir);
565-
do {
566-
if((pin = hal.port.get_pin_info(type, dir, --port))) {
567-
if((found = pin->description && !strcmp(pin->description, description)))
568-
port = pin->id;
569-
}
570-
} while(port && !found);
571-
}
572-
573-
if(!found) {
574-
port = ioports_available(type, dir);
575-
do {
576-
if((pin = hal.port.get_pin_info(type, dir, --port))) {
577-
if((found = !pin->mode.claimed))
578-
port = pin->id;
579-
}
580-
} while(port && !found);
581-
}
582-
583-
return found ? port : 255;
584-
}
585-
586557
static void plasma_settings_restore (void)
587558
{
588559
plasma.mode = updown_enabled ? Plasma_ModeUpDown : Plasma_ModeVoltage;

0 commit comments

Comments
 (0)