вспышка

This commit is contained in:
Mit4el
2023-10-03 20:57:12 +03:00
parent e47eb4969a
commit eae29bd680
2 changed files with 8 additions and 10 deletions

View File

@@ -75,7 +75,7 @@ public:
else
save_picture();
}
else if (command == "flashOn" && param.size() == 1)
else if (command == "flashOn")
{
ledcSetup(LED_LEDC_CHANNEL, 5000, 8);
ledcAttachPin(LED_GPIO_NUM, LED_LEDC_CHANNEL);