Com: Make the comment length explicit
sendComment cannot send more than 62 bytes, as limited by the HID report. Sending more is prevented by vsnprintf, but change the function signature to make it explicit that the array passed to it should be at most 62 bytes.
This commit is contained in:
parent
005f4e1bea
commit
b0753ada9f
3 changed files with 3 additions and 3 deletions
|
@ -28,7 +28,7 @@ namespace Com {
|
|||
flushBuffer();
|
||||
}
|
||||
|
||||
void sendComment(const char *message, ...) {
|
||||
void sendComment(const char message[62], ...) {
|
||||
va_list args;
|
||||
va_start(args, message);
|
||||
buffer[0] = '#';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue