Comment out some messages because PROGMEM limit

This commit is contained in:
Carsten Schmiemann 2023-12-08 03:41:49 +01:00
parent 057fefe564
commit a54a5ca2d5

View file

@ -10,7 +10,7 @@ byte sndStat; // Status of the sent message (global variable)
// Struct to hold CAN packet information // Struct to hold CAN packet information
struct CanPacket { struct CanPacket {
unsigned long id; unsigned long id;
char data[22]; char data[24];
}; };
// Array of CAN packets to be sent // Array of CAN packets to be sent
@ -286,8 +286,7 @@ const CanPacket packets[] PROGMEM = {
{0x0A8, "95 20 29 69 A0 7F FF"}, {0x0A8, "95 20 29 69 A0 7F FF"},
{0x0A8, "2C 30 29 69 A0 7F FF"}, {0x0A8, "2C 30 29 69 A0 7F FF"},
{0x0A8, "24 40 29 69 A0 7F FF"}, {0x0A8, "24 40 29 69 A0 7F FF"},
}; {0x0A8, "9D 50 29 69 A0 7F FF"},
/*{0x0A8, "9D 50 29 69 A0 7F FF"},
{0x0A8, "4B 60 29 69 A0 7F FF"}, {0x0A8, "4B 60 29 69 A0 7F FF"},
{0x0A8, "F2 70 29 69 A0 7F FF"}, {0x0A8, "F2 70 29 69 A0 7F FF"},
{0x0A8, "5B 80 29 69 A0 7F FF"}, {0x0A8, "5B 80 29 69 A0 7F FF"},
@ -1178,6 +1177,8 @@ const CanPacket packets[] PROGMEM = {
{0x46F, "10 EE F5 00 24 84 07 30"}, {0x46F, "10 EE F5 00 24 84 07 30"},
{0x0AC, "21 7E 00 2E 4F 19 80 A0"}, {0x0AC, "21 7E 00 2E 4F 19 80 A0"},
{0x0B4, "F9 60 7E 17 DE 7C 77 CD"}, {0x0B4, "F9 60 7E 17 DE 7C 77 CD"},
};
/*
{0x46F, "30 58 9E 00 24 84 07 30"}, {0x46F, "30 58 9E 00 24 84 07 30"},
{0x0AC, "71 7E 00 2E 4F 1D 80 A0"}, {0x0AC, "71 7E 00 2E 4F 1D 80 A0"},
{0x46F, "50 92 46 00 24 84 07 30"}, {0x46F, "50 92 46 00 24 84 07 30"},
@ -1442,7 +1443,7 @@ void setup() {
Serial.begin(115200); Serial.begin(115200);
// Initialize MCP2515 // Initialize MCP2515
if (CAN0.begin(MCP_ANY, CAN_500KBPS, MCP_8MHZ) == CAN_OK) { if (CAN0.begin(MCP_STD, CAN_500KBPS, MCP_8MHZ) == CAN_OK) {
Serial.println("MCP2515 Initialized Successfully!"); Serial.println("MCP2515 Initialized Successfully!");
} else { } else {
Serial.println("Error Initializing MCP2515..."); Serial.println("Error Initializing MCP2515...");