Project

General

Profile

Revision 1208

Moved usb_puts_P from diagnostic station to library

View differences:

comm_server.c
60 60
// ## Message processing ##
61 61
// ########################
62 62

  
63
// TODO move this to the library
64
static void serial_send_string_P (PGM_P s)
65
{
66
    char buf;
67
    while (memcpy_P (&buf, s, sizeof (char)), buf!=0)
68
    {
69
        usb_putc (buf);
70
        s++;
71
    }
72
}
73

  
74 63
static char *find_next_parameter (char *p)
75 64
{
76 65
	// Advance p until a blank or the terminating zero is found.
......
259 248

  
260 249
static void handle_message_help (char *buffer)
261 250
{
262
	serial_send_string_P (help_text);
251
	usb_puts_P (help_text);
263 252
}
264 253

  
265 254

  

Also available in: Unified diff