Skip to content

Commit

Permalink
Merge pull request ispysoftware#192 from elyakimw/fixRepeatOnvifPresets
Browse files Browse the repository at this point in the history
Fix repeat onvif presets
  • Loading branch information
ispysoftware authored May 16, 2022
2 parents b73cb93 + 13947bf commit c6e14bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Controls/PTZScheduler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private void button7_Click(object sender, EventArgs e)
var dtCurrent = si.time.AddSeconds(cr.Interval);
while (dtCurrent.TimeOfDay < dtUntil.TimeOfDay)
{
s.Add(new objectsCameraPtzscheduleEntry { command = si.command, time = dtCurrent });
s.Add(new objectsCameraPtzscheduleEntry { command = si.command, token = si.token, time = dtCurrent });
dtCurrent = dtCurrent.AddSeconds(cr.Interval);
}
}
Expand Down
3 changes: 2 additions & 1 deletion Server/JSONServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2283,7 +2283,8 @@ void SaveJson(string sPhysicalFilePath, string sHttpVersion, string sBuffer, Htt
pe = new objectsCameraPtzscheduleEntry
{
command = "",
time = new DateTime()
time = new DateTime(),
token = ""
};

PopulateObject(d, pe);
Expand Down

0 comments on commit c6e14bf

Please sign in to comment.