Skip to content

extended header sending error with \n #33

Description

@richardturnnidge

I found an odd error sending if certain \n order is used in a printf() function.

This will upload fine:

      printf("nunchuck_joyD      " BYTE_TO_BINARY_PATTERN, BYTE_TO_BINARY(nunchuck_joyD) ); 
      printf("\n"); 
      printf("\nnunchuck_angleX    %d   \n", nunchuck_angleX); 

This gives error:

      printf("nunchuck_joyD      " BYTE_TO_BINARY_PATTERN, BYTE_TO_BINARY(nunchuck_joyD) ); 
      //printf("\n"); 
      printf("\nnunchuck_angleX    %d   \n", nunchuck_angleX); 
Using Baudrate 115200
Opening serial port...
Extended header sending error, aborting
make: *** [upload] Error 1

The only difference is the insertion of \n

It appears to be an issue if the next char is another (single) n

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions