jpraus / arduino-opentherm

Arduino library and hardware shield to send and receive data from Opentherm devices
Other
168 stars 43 forks source link

Save memory. Store Serial strings to flash. #31

Closed JWGracht closed 3 years ago

JWGracht commented 3 years ago

Memory is saved when the strings used for serial communication are stored in flash memory instead of ram. Most Arduino board have a lot more flash then ram. The F macro ( https://www.arduino.cc/reference/en/language/variables/utilities/progmem/#_the_f_macro ) is used to indicate the compiler to use flash.

jpraus commented 3 years ago

Thank you. Merged.