Fix ButtonSample following quickFSM api change