Skip to content
Permalink
Browse files

fix $.POL change that broke inputs w/ DEVICE.FLIP

  • Loading branch information
csboling committed Jul 12, 2019
1 parent 6fba23a commit 2ef0d2853a0d06a460a914df8ef02a399eba5dc0
Showing with 1 addition and 1 deletion.
  1. +1 −1 module/main.c
@@ -461,7 +461,7 @@ void handler_MscConnect(int32_t data) {
void handler_Trigger(int32_t data) {
u8 input = device_config.flip ? 7 - data : data;
if (!ss_get_mute(&scene_state, input)) {
bool tr_state = gpio_get_pin_value(A00 + input);
bool tr_state = gpio_get_pin_value(A00 + data);
if (tr_state) {
if (scene_state.variables.script_pol[input] & 1) {
run_script(&scene_state, input);

0 comments on commit 2ef0d28

Please sign in to comment.