From 0198e0e26e787c0635664d972b059c0e503229e1 Mon Sep 17 00:00:00 2001 From: rchia16 <ray.chia92@gmail.com> Date: Fri, 10 Nov 2023 16:07:04 +1100 Subject: [PATCH] cycle fix --- Assets/Scripts/ProtocolHandler.cs | 3 ++- EventLogs/20231110T151659.json | 1 + EventLogs/20231110T151843.json | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 EventLogs/20231110T151659.json create mode 100644 EventLogs/20231110T151843.json diff --git a/Assets/Scripts/ProtocolHandler.cs b/Assets/Scripts/ProtocolHandler.cs index 0335f8b..2eef630 100644 --- a/Assets/Scripts/ProtocolHandler.cs +++ b/Assets/Scripts/ProtocolHandler.cs @@ -64,7 +64,7 @@ public class ProtocolHandler : MonoBehaviour } currentCycle++; - runProtocol = false; + runProtocol = true; animateCircle.enabled = false; currentBlockIndex = 0; @@ -80,6 +80,7 @@ public class ProtocolHandler : MonoBehaviour animateCircle.MoveToOffset(); canvas.enabled = true; displayProgress.enabled = false; + runProtocol = false; } } diff --git a/EventLogs/20231110T151659.json b/EventLogs/20231110T151659.json new file mode 100644 index 0000000..88cba41 --- /dev/null +++ b/EventLogs/20231110T151659.json @@ -0,0 +1 @@ +[{"timestamp":"10/11/2023 3:16:44 PM","inhalePeriod":"4","exhalePeriod":"6","eventTag":"Start"},{"timestamp":"10/11/2023 3:16:50 PM","inhalePeriod":"4","exhalePeriod":"6","eventTag":"Stop"},{"timestamp":"10/11/2023 3:16:53 PM","inhalePeriod":"4","exhalePeriod":"6","eventTag":"Start"},{"timestamp":"10/11/2023 3:16:59 PM","inhalePeriod":"4","exhalePeriod":"6","eventTag":"Stop"}] \ No newline at end of file diff --git a/EventLogs/20231110T151843.json b/EventLogs/20231110T151843.json new file mode 100644 index 0000000..8d448b3 --- /dev/null +++ b/EventLogs/20231110T151843.json @@ -0,0 +1 @@ +[{"timestamp":"10/11/2023 3:17:55 PM","inhalePeriod":"1","exhalePeriod":"1","eventTag":"Start"},{"timestamp":"10/11/2023 3:18:01 PM","inhalePeriod":"1","exhalePeriod":"1","eventTag":"Stop"},{"timestamp":"10/11/2023 3:18:04 PM","inhalePeriod":"2","exhalePeriod":"2","eventTag":"Start"},{"timestamp":"10/11/2023 3:18:10 PM","inhalePeriod":"2","exhalePeriod":"2","eventTag":"Stop"},{"timestamp":"10/11/2023 3:18:13 PM","inhalePeriod":"3","exhalePeriod":"3","eventTag":"Start"},{"timestamp":"10/11/2023 3:18:19 PM","inhalePeriod":"3","exhalePeriod":"3","eventTag":"Stop"},{"timestamp":"10/11/2023 3:18:19 PM","inhalePeriod":"1","exhalePeriod":"1","eventTag":"Start"},{"timestamp":"10/11/2023 3:18:25 PM","inhalePeriod":"1","exhalePeriod":"1","eventTag":"Stop"},{"timestamp":"10/11/2023 3:18:28 PM","inhalePeriod":"2","exhalePeriod":"2","eventTag":"Start"},{"timestamp":"10/11/2023 3:18:34 PM","inhalePeriod":"2","exhalePeriod":"2","eventTag":"Stop"},{"timestamp":"10/11/2023 3:18:37 PM","inhalePeriod":"3","exhalePeriod":"3","eventTag":"Start"},{"timestamp":"10/11/2023 3:18:43 PM","inhalePeriod":"3","exhalePeriod":"3","eventTag":"Stop"}] \ No newline at end of file -- GitLab