Advertisement
yalapeno

vending_comment

Apr 25th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. /--
  2. -> State: 1.1 <-
  3. choice = FALSE
  4. payment = FALSE
  5. acc_payment = FALSE
  6. state = ready
  7. release_item = FALSE
  8. -> State: 1.2 <-
  9. choice = TRUE
  10. -> State: 1.3 <-
  11. choice = FALSE
  12. payment = TRUE
  13. state = expect_payment
  14. -> State: 1.4 <-
  15. payment = FALSE
  16. acc_payment = TRUE
  17. state = ready
  18. -- Loop starts here
  19. -> State: 1.5 <-
  20. acc_payment = FALSE
  21. -> State: 1.6 <-
  22.  
  23.  
  24. The problem is that when the state is expect_payment and both payment and choice is false, the state goes back to ready - not dispense_item - and thereby the item is not released.
  25. --/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement