Pressed and released callback are reversed in hw_button_add()

Discuss suspected bugs with other users and Sim Innovations Staff

Moderators: russ, Ralph

Post Reply
Message
Author
ylevesque
Posts: 69
Joined: Wed Jan 09, 2019 6:49 pm

Pressed and released callback are reversed in hw_button_add()

#1 Post by ylevesque »

In hw_button_add(), pressed_callback and released_callback are in reverse order
Currently, the function is implemented this way:
hw_button_id = hw_button_add(hw_id, released_callback, pressed_callback)

tested in AM 4.2 BETA 28.
Please let me know when the problem is fixed so I can update my scripts.

Yves

SimPassion
Posts: 5338
Joined: Thu Jul 27, 2017 12:22 am

Re: Pressed and released callback are reversed in hw_button_add()

#2 Post by SimPassion »

I confirm the issue. Checked with BETA 28

Post Reply