0 2.0.47 - missing relay_on? Posted by Michal Rusina on October 8, 2011 at 10:11am i get this error on 2.0.47 when trying to compile with running lights. before that it worked without any problems... any help? You need to be a member of diydrones to add comments! Join diydrones Email me when people reply – Follow
Replies
Yeah, those functions have indeed been erased or moved apparentely. They used to be in events.pde.
Judging by the call to relay.toggle(); just above where the relay function definitions used to be, I'd suspect the functions are moved to a library.
Try modifying the relay_on and relay_off functions to relay.on() and relay.off() so replacing _ with a .
If that doesn't work, add the following to bottom of events.pde :
static void relay_on(){ PORTL |= B00000100;}
static void relay_off(){ PORTL &= ~B00000100;}
static void relay_toggle(){ PORTL ^= B00000100;}