Teo-CD
caff96922e
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.
20 lines
388 B
C++
20 lines
388 B
C++
//
|
|
// Created by Teo-CD on 24/09/23.
|
|
//
|
|
|
|
#ifndef JIN_BARBAPAPA_COM_H
|
|
#define JIN_BARBAPAPA_COM_H
|
|
|
|
#include <Arduino.h>
|
|
#include <cstring>
|
|
|
|
/**
|
|
* Handle communication with a connected device and provide convenience
|
|
* functions for the fixed protocols.
|
|
*/
|
|
namespace Com {
|
|
void sendFigUpdate(int8_t event);
|
|
void sendComment(const char message[62], ...);
|
|
}
|
|
|
|
#endif //JIN_BARBAPAPA_COM_H
|