Skip to content
Commit 7bb326d3 authored by Ian Jackson's avatar Ian Jackson
Browse files

eeprom: provide smaller code for SERIAL_ECHOPAIR



SERIAL_ECHOPAIR implies, eventually, two calls to MYSERIAL.print.  One
of these has FORCE_INLINE for a per-character loop, and both involve
constructing a method call rather than a simple function call.

Produce better and smaller code by providing three specialised
functions serial_echopair.  This saves 672 bytes of program memory
(with EEPROM_SETTINGS and SDSUPPORT enabled).

Signed-off-by: default avatarIan Jackson <ijackson@chiark.greenend.org.uk>
parent 957e966d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment