gv_fsm 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/templates.rb +5 -3
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16cf9c4cad02807aa41c4229aceea78be6f407c28f2a25a8b40e4395c6c7d494
|
4
|
+
data.tar.gz: 21f75946fb7d626d97cb87bcc44108e7fd3c01d0f8c388c08f0f3a65fb8f65c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0eb8b28821342aaea705c4f4fceb94f5a689579934ce8da6f6e6dba06a3e902de73da42fa95019fa10a5a8dd457f7fe54a23946b5ce437d298cf88358a92c184
|
7
|
+
data.tar.gz: 885046a66dd9f4ac5b996ca0b28bad123b6ca21bf3983690556064f9b70ce9b2b546c0305e3148bc0ffb4692fe22b3aa0adc55dec8918d8e3b85180a902ca783
|
data/lib/templates.rb
CHANGED
@@ -115,9 +115,11 @@ module GV_FSM
|
|
115
115
|
#include <signal.h>
|
116
116
|
static int _exit_request = 0;
|
117
117
|
static void signal_handler(int signal) {
|
118
|
-
if (signal == SIGINT)
|
119
|
-
|
120
|
-
|
118
|
+
if (signal == SIGINT) {
|
119
|
+
_exit_request = 1;<% if log == :syslog then %>
|
120
|
+
syslog(LOG_WARNING, "[FSM] SIGINT transition to <%= sigint %>");<% elsif log == :ino then %>
|
121
|
+
Serial.println("[FSM] SIGINT transition to <%= sigint %>");<% end %>
|
122
|
+
}
|
121
123
|
}
|
122
124
|
|
123
125
|
<% end %>
|
data/lib/version.rb
CHANGED