Skip to content

Commit

Permalink
Mem Opt
Browse files Browse the repository at this point in the history
Added "F" macro to reduce RAM usage
  • Loading branch information
thomasonw committed Mar 12, 2016
1 parent e80d568 commit f7d0f29
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions N2kMsg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,16 +511,16 @@ void PrintBuf(Stream *port, unsigned char len, const unsigned char *pData) {
//*****************************************************************************
void tN2kMsg::Print(Stream *port, bool NoData) const {
if (!IsValid()) return;
port->print("Pri:"); port->print(Priority);
port->print(" PGN:"); port->print(PGN);
port->print(" Source:"); port->print(Source);
port->print(" Dest:"); port->print(Destination);
port->print(" Len:"); port->print(DataLen);
port->print(F("Pri:")); port->print(Priority);
port->print(F(" PGN:")); port->print(PGN);
port->print(F(" Source:")); port->print(Source);
port->print(F(" Dest:")); port->print(Destination);
port->print(F(" Len:")); port->print(DataLen);
if (!NoData) {
port->print(" Data:");
port->print(F(" Data:"));
PrintBuf(port,DataLen,Data);
}
port->print("\r\n");
port->print(F("\r\n"));
}

//*****************************************************************************
Expand Down

0 comments on commit f7d0f29

Please sign in to comment.