chiark / gitweb /
eeprom: provide smaller code for SERIAL_ECHOPAIR
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 4 Aug 2012 15:13:25 +0000 (16:13 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 8 Aug 2012 17:04:08 +0000 (18:04 +0100)
commit4361c56748aadf86df770de046a3e582c2d09207
treee801707aef83979bce33278501a19bbc200940b9
parentc7ddc4372e205d4fe6a85249f8824228def4381c
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 enabled).

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Marlin/Marlin.h
Marlin/Marlin.pde