I was building a rotary phone audio guestbook, and my device uses the NO hook type. However, even after changing the configuration to reflect this, the program launches into playing the message when the phone is docked, and stopping when the phone is removed from the dock.
I found that the issue is part of the setup_hook definition, where:
self.hook.when_pressed = self.off_hookself.hook.when_released = self.on_hook
Need to be reversed when the hook_type is "NO". I'll submit a PR for this issue. This project was a life saver and was really exciting that something like this existed!
I was building a rotary phone audio guestbook, and my device uses the NO hook type. However, even after changing the configuration to reflect this, the program launches into playing the message when the phone is docked, and stopping when the phone is removed from the dock.
I found that the issue is part of the setup_hook definition, where:
self.hook.when_pressed = self.off_hook
self.hook.when_released = self.on_hook
Need to be reversed when the hook_type is "NO". I'll submit a PR for this issue. This project was a life saver and was really exciting that something like this existed!