Psi Swarm robot library version 0.9
Fork of PsiSwarmV9 by
Diff: psiswarm.cpp
- Revision:
- 20:2b6ebe60929d
- Parent:
- 19:3e3b03d80ea3
diff -r 3e3b03d80ea3 -r 2b6ebe60929d psiswarm.cpp --- a/psiswarm.cpp Mon Jun 05 22:47:14 2017 +0000 +++ b/psiswarm.cpp Mon Jul 08 10:50:40 2019 +0000 @@ -169,7 +169,7 @@ { firmware_version=0; timer_minute_count = 0; - timer_ticker.attach(this,&Psiswarm::IF_update_minutes, 300); + timer_ticker.attach(callback(this, &Psiswarm::IF_update_minutes), 300); uptime.start(); primary_i2c.frequency(400000); serial.setup_serial_interfaces(); @@ -285,7 +285,7 @@ char demo_on = 0; if(ENABLE_DEMO == 1 && switchstate > 0) demo_on=1; display.init_display_end(demo_on); - event_handler.attach_us(this,&Psiswarm::IF_handle_events, 1000); + event_handler.attach_us(callback(this, &Psiswarm::IF_handle_events), 1000); if(demo_on > 0) { debug("- Demo mode button is pressed\n"); wait(0.6); @@ -386,7 +386,7 @@ { user_code_restore_mode = user_code_running; user_code_running = 0; - pause_usercode_timeout.attach(this,&Psiswarm::IF_end_pause_user_code, period); + pause_usercode_timeout.attach(callback(this, &Psiswarm::IF_end_pause_user_code), period); } void Psiswarm::IF_end_pause_user_code()