* Temporarily stops the timerShot cycle. */
| 654 | * Temporarily stops the timerShot cycle. |
| 655 | */ |
| 656 | void 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. |