fix(stdlib): remove unnecessary check from console-log implementation, make it compile again

This commit is contained in:
Evgeny Kochetkov
2017-12-26 15:44:35 +03:00
parent 2737e6b18f
commit f4528beec4

View File

@@ -15,11 +15,10 @@ void evaluate(Context ctx) {
}
auto line = getValue<input_LINE>(ctx);
if (line) {
for (auto it = line->iterate(); it; ++it)
Serial.write((char)*it);
Serial.write('\r');
Serial.write('\n');
Serial.flush();
}
for (auto it = line->iterate(); it; ++it)
Serial.write((char)*it);
Serial.write('\r');
Serial.write('\n');
Serial.flush();
}