fixed a bug in protocol state machines
Merge branch 'master' of github.com:mbeddr/mbeddr.core