arduino-libraries / SD

SD Library for Arduino

Home Page:http://arduino.cc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serial is pulled when using SDCard

clementleger opened this issue · comments

While developing a sketch, I was really low on memory and started investigating on which element were taking space. I noticed Serial was being pulled in the final elf even without using it at all.
It appear the SDFile.cpp file contains functions which are embedding Serial.println calls.
Is it possible to add a define which will exclude all print* function and hence reduce memory consumption ?
Thanks