aboutsummaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/i2c.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/i2c.c b/main/i2c.c
index 7a39a46..406b908 100644
--- a/main/i2c.c
+++ b/main/i2c.c
@@ -149,9 +149,9 @@ void pb_route_cmd_prop_set(pb_msg_t * msg) {
pb_cmd_prop_t * cmd = msg->cmd;
if(cmd->propid != PB_MOD_MAIN_PROP_MODS) return;
- bus_scan();
-
- puzzle_module_t modules[CFG_PB_MOD_MAX] = {};
size_t modules_size = 0;
+ puzzle_module_t modules[CFG_PB_MOD_MAX] = {};
+
+ bus_scan();
}