Focus: Allow partial eeprom upload

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/365/head
Gergely Nagy 8 years ago
parent fc59d1f64b
commit cdd6b811f9

@ -81,7 +81,7 @@ namespace FocusHooks {
}
Serial.println ();
} else {
for (uint16_t i = 0; i < EEPROM.length (); i++) {
for (uint16_t i = 0; i < EEPROM.length () && Serial.peek () != '\n'; i++) {
uint8_t d = Serial.parseInt ();
EEPROM.update (i, d);
}

Loading…
Cancel
Save