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
4fa109f816
commit
147e51c125
3 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@
|
|||
*/
|
||||
namespace Com {
|
||||
void sendFigUpdate(int8_t event);
|
||||
void sendComment(const char* message, ...);
|
||||
void sendComment(const char message[62], ...);
|
||||
}
|
||||
|
||||
#endif //JIN_BARBAPAPA_COM_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue