diff --git a/mendel/gcode.c b/mendel/gcode.c index 01e0a58..73ebe1f 100644 --- a/mendel/gcode.c +++ b/mendel/gcode.c @@ -732,7 +732,7 @@ void process_gcode_command(GCODE_COMMAND *gcmd) { * * ****************************************************************************/ -void request_resend() { +void request_resend(void) { serial_writestr_P(PSTR("Resend:")); serwrite_uint8(next_target.N); serial_writechar('\n'); diff --git a/mendel/gcode.h b/mendel/gcode.h index 075099d..48db7ac 100644 --- a/mendel/gcode.h +++ b/mendel/gcode.h @@ -75,6 +75,6 @@ void scan_char(uint8_t c); void process_gcode_command(GCODE_COMMAND *gcmd); // uses the global variable next_target.N -void request_resend(); +void request_resend(void); #endif /* _GCODE_H */ diff --git a/mendel/serial.c b/mendel/serial.c index 13703c2..63d66e3 100644 --- a/mendel/serial.c +++ b/mendel/serial.c @@ -184,7 +184,7 @@ void serial_writestr_P(PGM_P data) { uint8_t r, i = 0; // yes, this is *supposed* to be assignment rather than comparison, so we break when r is assigned zero - for (r; (r = pgm_read_byte(&data[i])); i++) + for ( ; (r = pgm_read_byte(&data[i])); i++) serial_writechar(r); }