Skip to content
Permalink
Browse files

add small delay before running init script (for slave i2c devices)

  • Loading branch information
samdoshi committed Jul 13, 2017
1 parent cbb677e commit 5213542fd81b09ac186c1a291639490f4bba788b
Showing with 4 additions and 0 deletions.
  1. +4 −0 module/main.c
@@ -731,6 +731,10 @@ int main(void) {
init_live_mode();
set_mode(M_LIVE);

// wait 50ms before running the init script to allow for any i2c devices to
// fully initalise
delay_ms(50);

run_script(&scene_state, INIT_SCRIPT);

while (true) { check_events(); }

0 comments on commit 5213542

Please sign in to comment.