Project

General

Profile

error on compiling Sleepy::loseSomeTime for ATtiny85 undefined reference to `millis_timer_millis'

Added by RobJW about 4 years ago

Running Arduino IDE 1.6.6 for processor ATtiny85 I get error: undefined reference to `millis_timer_millis'

With the following change to Sleepy::loseSomeTime the code compiles:

// adjust the milli ticks, since we will have missed several
// RJW 28/1/16 error undefined reference on compile for Atiny85
/*
#if defined(AVR_ATtiny84) || defined(AVR_ATtiny85) || defined (AVR_ATtiny44) || defined (AVR_ATtiny45)
extern volatile unsigned long millis_timer_millis;
millis_timer_millis += msecs - msleft;
#else
extern volatile unsigned long timer0_millis;
timer0_millis += msecs - msleft;
#endif
*/
extern volatile unsigned long timer0_millis;
timer0_millis += msecs - msleft;
return ok; // true if we lost approx the time planned

Where are timer0_millis and/or millis_time_millis declared?

Any thoughts? Perhaps this change is the cause of the external interrupt problem I reported in a separate post today, though it seems unlikely

Rob