Przeglądaj źródła

Remove legacy fixed GPIO number resolver

SybexXx 3 dni temu
rodzic
commit
7158c949d1
1 zmienionych plików z 0 dodań i 20 usunięć
  1. 0 20
      code/components/jomjol_controlGPIO/server_GPIO.cpp

+ 0 - 20
code/components/jomjol_controlGPIO/server_GPIO.cpp

@@ -732,26 +732,6 @@ void GpioHandler::flashLightEnable(bool value)
     }
 }
 
-gpio_num_t GpioHandler::resolvePinNr(uint8_t pinNr) 
-{
-    switch(pinNr)  {
-        case 0:
-            return GPIO_NUM_0;
-        case 1:
-            return GPIO_NUM_1;
-        case 3:
-            return GPIO_NUM_3;
-        case 4:
-            return GPIO_NUM_4;
-        case 12:
-            return GPIO_NUM_12;
-        case 13:
-            return GPIO_NUM_13;
-        default: 
-            return GPIO_NUM_NC;   
-    }
-}
-
 gpio_pin_mode_t GpioHandler::resolvePinMode(std::string input) 
 {
     if( input == "disabled" ) return GPIO_PIN_MODE_DISABLED;