2 string[] speeds = { "57600", "19200", "9600" };
4 string make_set_nmea(string speed) {
5 return sprintf ("PUBX,41,1,3,1,%s,0", speed);
10 for (int i = 0; i < String::length(x); i++)
15 for (int i = 0; i < dim(speeds); i++) {
16 string s = make_set_nmea(speeds[i]);
18 printf ("/* $%s* */\n", s);
19 printf ("#define SERIAL_SPEED_STRING \"%s\"\n", speeds[i]);
20 printf ("#define SERIAL_SPEED_CHECKSUM \"%02x\"\n", c);