Fix build: SD.h includes, enum/macro collisions (HEX/INPUT), usb_host string stub, BAUDS link
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
// Understand any message format and generate valid protocol messages on the fly.
|
||||
|
||||
class MessageForge : public Module {
|
||||
enum Format { HEX, JSON, PROTOBUF, CUSTOM_BINARY, XML } format = HEX;
|
||||
enum Format { FMT_HEX, JSON, PROTOBUF, CUSTOM_BINARY, XML } format = FMT_HEX;
|
||||
uint32_t messagesForged = 0;
|
||||
uint32_t payloadsInjected = 0;
|
||||
char lastMessage[128] = "00 01 02 03 04 05";
|
||||
@@ -55,7 +55,7 @@ private:
|
||||
void craftMessage() {
|
||||
messagesForged++;
|
||||
switch (format) {
|
||||
case HEX:
|
||||
case FMT_HEX:
|
||||
strncpy(lastMessage, "48 65 6c 6c 6f 20 57 6f 72 6c 64", 127);
|
||||
say("HEX: crafted %lu byte message", (unsigned long)(messagesForged * 11));
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user