diff options
-rw-r--r-- | mussel1/mussel1.puml | 7 | ||||
-rw-r--r-- | mussel2/mussel2.puml | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/mussel1/mussel1.puml b/mussel1/mussel1.puml index 76dc29c..12dbb43 100644 --- a/mussel1/mussel1.puml +++ b/mussel1/mussel1.puml @@ -4,15 +4,16 @@ partition init { :setup serial connection; :print "ready"; } -while (endlessly every few millisecond) +while (repeat every few millisecond) partition loop { +;resolve currentSecond; if (currentSecond < 50 ?) equals (yes) then :print "good"; else (no) :print "bad"; endif +:wait 1s; } -endwhile -:(this point never reached); +endwhile (unused path) stop @enduml diff --git a/mussel2/mussel2.puml b/mussel2/mussel2.puml index 49b1457..1e659a5 100644 --- a/mussel2/mussel2.puml +++ b/mussel2/mussel2.puml @@ -4,15 +4,16 @@ partition init { :setup serial connection; :print "ready"; } -while (endlessly every few millisecond) +while (repeat every few millisecond) partition loop { +;resolve currentSecond; if (currentSecond mod 12 < 9 ?) equals (yes) then :print "good"; else (no) :print "bad"; endif +:wait 1s; } -endwhile -:(this point never reached); +endwhile (unused path) stop @enduml |