Comment out some messages because PROGMEM limit
This commit is contained in:
parent
057fefe564
commit
a54a5ca2d5
1 changed files with 5 additions and 4 deletions
|
@ -10,7 +10,7 @@ byte sndStat; // Status of the sent message (global variable)
|
|||
// Struct to hold CAN packet information
|
||||
struct CanPacket {
|
||||
unsigned long id;
|
||||
char data[22];
|
||||
char data[24];
|
||||
};
|
||||
|
||||
// Array of CAN packets to be sent
|
||||
|
@ -286,8 +286,7 @@ const CanPacket packets[] PROGMEM = {
|
|||
{0x0A8, "95 20 29 69 A0 7F FF"},
|
||||
{0x0A8, "2C 30 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, "F2 70 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"},
|
||||
{0x0AC, "21 7E 00 2E 4F 19 80 A0"},
|
||||
{0x0B4, "F9 60 7E 17 DE 7C 77 CD"},
|
||||
};
|
||||
/*
|
||||
{0x46F, "30 58 9E 00 24 84 07 30"},
|
||||
{0x0AC, "71 7E 00 2E 4F 1D 80 A0"},
|
||||
{0x46F, "50 92 46 00 24 84 07 30"},
|
||||
|
@ -1442,7 +1443,7 @@ void setup() {
|
|||
Serial.begin(115200);
|
||||
|
||||
// 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!");
|
||||
} else {
|
||||
Serial.println("Error Initializing MCP2515...");
|
||||
|
|
Loading…
Reference in a new issue