Fix a few warnings.
This commit is contained in:
parent
31dcf28fd4
commit
81fd2c3773
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue