stm32duino / STM32Ethernet

Arduino library to support Ethernet for STM32 based board
151 stars 42 forks source link

Compile fails with version 1.9.0 of STM32 Core #46

Closed prototypicalpro closed 4 years ago

prototypicalpro commented 4 years ago

STM32Ethernet fails to compile with version v1.9.0 of the Arduino STM32 core with the following error:

/home/travis/Arduino/libraries/STM32duino_STM32Ethernet/src/utility/stm32_eth.cpp: In function 'void TIM_scheduler_Config()':
/home/travis/Arduino/libraries/STM32duino_STM32Ethernet/src/utility/stm32_eth.cpp:179:45: error: no matching function for call to 'HardwareTimer::attachInterrupt(void (&)(HardwareTimer*))'
  179 |   EthTim->attachInterrupt(scheduler_callback);

This seems to be because the STM32 core changed the parameter type of void HardwareTimer::attachInterrupt from a function pointer to a function object in the v1.9.0 update: https://github.com/stm32duino/Arduino_Core_STM32/commit/2983175adc4162efcc88d7ed22cf310d21edb002. v1.8.0 of the STM32 core does not have this change and compiles fine.

fpistm commented 4 years ago

Right, I forgot to do a new release. I will do soon.

fpistm commented 4 years ago

Release 1.2.0 done: https://github.com/stm32duino/STM32Ethernet/releases/tag/1.2.0