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

Method disableTimerShot

examples/WebCamServer/ESP32Cam.cpp:656–674  ·  view source on GitHub ↗

* Temporarily stops the timerShot cycle. */

Source from the content-addressed store, hash-verified

654 * Temporarily stops the timerShot cycle.
655 */
656void ESP32Cam::disableTimerShot(void) {
657 if (_hwTimer) {
658 timerAlarmDisable(_hwTimer);
659 switch (_mounted) {
660 case MOUNT_SD: {
661 fs::SDFS* sd = reinterpret_cast<fs::SDFS*>(_sdFile);
662 sd->end();
663 break;
664 }
665 case MOUNT_SDMMC: {
666 fs::SDMMCFS* sdmmc = reinterpret_cast<fs::SDMMCFS*>(_sdFile);
667 sdmmc->end();
668 break;
669 }
670 case MOUNT_NONE:
671 break;
672 }
673 }
674}
675
676/**
677 * Resume the shooting cycle of timerShot that has been temporarily stopped.

Callers 1

_promptHandlerMethod · 0.80

Calls 1

endMethod · 0.45

Tested by

no test coverage detected