Closed mitchmitchell closed 4 years ago
For my own reference, related issue and a few other things to fix for this chipset https://forum.mysensors.org/topic/10169/compile-nodemanager-for-stm32f103c8-but-i-get-error/2
Fixed by #512 (also those fixes from the MySensors forum)
In Node.h, the statement uint8_t _analog_reference = DEFAULT; should be protected by an #ifdef CHIP_AVR / #endif pair as the code which uses it is in Node.cpp since the constant DEFAULT is not defined for non AVR processors (or at least not for STM32 processors)
Node.cpp is:
ifdef CHIP_AVR
endif
Node.h SHOULD be as below:
ifdef CHIP_AVR
Reference regarding ADC accuracy: https://www.st.com/content/ccc/resource/technical/document/application_note/group0/3f/4c/a4/82/bd/63/4e/92/CD00211314/files/CD00211314.pdf/jcr:content/translations/en.CD00211314.pdf