rocketscream / Low-Power

Low Power Library for Arduino
www.rocketscream.com
1.26k stars 345 forks source link

Compilation failure #97

Open HiFiJ opened 4 years ago

HiFiJ commented 4 years ago

Hi RocketScream,

thanks very much for your work with this library!! I would like to use it in conjunction with MySensors (current version 2.3.2) mysensors.org, but am experiencing a "fatal" compilation error:

libraries/Low-Power-master/LowPower.cpp.o (symbol from plugin): In function >LowPowerClass::idle(period_t, adc_t, timer2_t, timer1_t, timer0_t, spi_t, usart0_t, twi_t)': (.text+0x0): multiple definition of__vector_6' sketch/sensor_mysensor.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here collect2: error: ld returned 1 exit status exit status 1`

I am using your lib together with VS-Code / PlatformIo for an Arduino Pro Mini. MySensors includes an own implementation of the sleep() method, but your lib seems to be the only way to get sleep working together with pin change interrupt and timer interrupt waking.

Thanks for any help,

Joost