File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed
Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff 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-
586557static void plasma_settings_restore (void )
587558{
588559 plasma .mode = updown_enabled ? Plasma_ModeUpDown : Plasma_ModeVoltage ;
You can’t perform that action at this time.
0 commit comments