Commit f10862a3 authored by Erik Strand's avatar Erik Strand

Don't print trailing commas

parent dbeda57d
......@@ -174,9 +174,10 @@ void loop(void) {
if (!ds.search(addr)) {
PORTB |= led_pin;
//put_line(&serial_port, serial_pin_out, "No more addresses.");
for (unsigned i = 0; i < n_nodes; ++i) {
put_float(&serial_port, serial_pin_out, measurements[i]);
put_float(&serial_port, serial_pin_out, measurements[i]);
for (unsigned i = 1; i < n_nodes; ++i) {
put_string(&serial_port, serial_pin_out, ", ");
put_float(&serial_port, serial_pin_out, measurements[i]);
}
put_char(&serial_port, serial_pin_out, '\n');
......
Markdown is supported
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