MCPcopy Create free account
hub / github.com/Hieromon/AutoConnect / enableTimerShot

Method enableTimerShot

examples/WebCamServer/ESP32Cam.cpp:679–697  ·  view source on GitHub ↗

* Resume the shooting cycle of timerShot that has been temporarily stopped. */

Source from the content-addressed store, hash-verified

677 * Resume the shooting cycle of timerShot that has been temporarily stopped.
678 */
679void ESP32Cam::enableTimerShot(void) {
680 if (_hwTimer) {
681 switch (_mounted) {
682 case MOUNT_SD: {
683 fs::SDFS* sd = reinterpret_cast<fs::SDFS*>(_sdFile);
684 sd->begin();
685 break;
686 }
687 case MOUNT_SDMMC: {
688 fs::SDMMCFS* sdmmc = reinterpret_cast<fs::SDMMCFS*>(_sdFile);
689 sdmmc->begin();
690 break;
691 }
692 case MOUNT_NONE:
693 break;
694 }
695 timerAlarmEnable(_hwTimer);
696 }
697}
698
699/**
700 * Release a semaphore.

Callers 1

_promptHandlerMethod · 0.80

Calls 1

beginMethod · 0.80

Tested by

no test coverage detected