Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /--
- -> State: 1.1 <-
- choice = FALSE
- payment = FALSE
- acc_payment = FALSE
- state = ready
- release_item = FALSE
- -> State: 1.2 <-
- choice = TRUE
- -> State: 1.3 <-
- choice = FALSE
- payment = TRUE
- state = expect_payment
- -> State: 1.4 <-
- payment = FALSE
- acc_payment = TRUE
- state = ready
- -- Loop starts here
- -> State: 1.5 <-
- acc_payment = FALSE
- -> State: 1.6 <-
- 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.
- --/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement