Explorar o código

Use unsigned literal for power down pin bit mask

gpio_config_t::pin_bit_mask is uint64_t; use 1ULL like the rest of the
code base (e.g. server_GPIO.cpp) instead of the signed 1LL.
Argetlam hai 1 mes
pai
achega
51acf14d32
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      code/components/jomjol_controlcamera/server_camera.cpp

+ 1 - 1
code/components/jomjol_controlcamera/server_camera.cpp

@@ -27,7 +27,7 @@ void PowerResetCamera()
     {
         ESP_LOGD(TAG, "Resetting camera by power down line");
         gpio_config_t conf = {
-            .pin_bit_mask = 1LL << CAM_PIN_PWDN,
+            .pin_bit_mask = 1ULL << CAM_PIN_PWDN,
             .mode = GPIO_MODE_OUTPUT,
             .pull_up_en = GPIO_PULLUP_DISABLE,
             .pull_down_en = GPIO_PULLDOWN_DISABLE,