Skip to content

Add object detection, tracking, mobile notifications, and search to any security camera.

incloosive or

roryclear91fcadcf8058
diff --git a/clearcam/SceneState.m b/clearcam/SceneState.m
index 2be5724..9e2d8ec 100644
--- a/clearcam/SceneState.m
+++ b/clearcam/SceneState.m
@@ -120,7 +120,7 @@
NSInteger startTime = [schedule[@"startHour"] integerValue] * 60 + [schedule[@"startMinute"] integerValue];
NSInteger endTime = [schedule[@"endHour"] integerValue] * 60 + [schedule[@"endMinute"] integerValue];
- if (currentTime >= startTime && currentTime < endTime) {
+ if (currentTime >= startTime && currentTime <= endTime) {
[[Email sharedInstance] sendEmailWithImageAtPath:filePath];
self.last_email_time = now;
NSLog(@"Email sent: Within scheduled time");