* Resume the shooting cycle of timerShot that has been temporarily stopped. */
| 677 | * Resume the shooting cycle of timerShot that has been temporarily stopped. |
| 678 | */ |
| 679 | void 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. |