Skip to content

Commit

Permalink
curly bracket init
Browse files Browse the repository at this point in the history
  • Loading branch information
unref-ptr authored May 23, 2022
1 parent b0618f2 commit 0c31fe6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/lwIOLink.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ namespace lwIOLink
void ProcessMessage();
//Sets the Response for the Master, returns the total bytes to send
uint8_t SetResponse();
uint8_t rxBuffer[MaxIOLMsgSize];
uint8_t txBuffer[MaxIOLMsgSize];
uint8_t rxBuffer[MaxIOLMsgSize]{};
uint8_t txBuffer[MaxIOLMsgSize]{};
void initTransciever(int wakeup_mode) const;
//Parse the MC (Figure A.1)
void ParseMC();
Expand All @@ -351,12 +351,12 @@ namespace lwIOLink
uint8_t EncodeCycleTime(uint32_t cycleTime_us) const;
Stream * SerialPort = nullptr;
ioLink_message_t message;
PD Pd;
uint8_t ODBuffer[MaxOD];
PD Pd{};
uint8_t ODBuffer[MaxOD]{};
/* Process Data status */
Status status = { .PDIn = Valid, .PDOut = Invalid};
/* Table B.1 */
uint8_t ParameterPage1[SizeDP1] = {0};
uint8_t ParameterPage1[SizeDP1]{};
bool NewCmd = false;
unsigned TxEn;
unsigned WuPin;
Expand All @@ -371,4 +371,3 @@ namespace lwIOLink
unsigned long LastMessage = 0;
};
};

0 comments on commit 0c31fe6

Please sign in to comment.