Skip to content

Commit

Permalink
pt2001 uninitialized value
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Nov 30, 2022
1 parent 35e6859 commit 16a8e0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pt2001/src/pt2001.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ void Pt2001Base::downloadRam(int target) {
uint16_t codeWidthRegAddr = 0; // code width register address
uint16_t size = 0; // size of RAM data
uint16_t command = 0; // command data
const uint16_t *RAM_ptr; // pointer to array of data to be sent to the chip
const uint16_t *RAM_ptr = nullptr; // pointer to array of data to be sent to the chip

//Why Again? For Every time, just in case?
setupSpi();
Expand Down Expand Up @@ -291,7 +291,7 @@ void Pt2001Base::downloadRegister(int r_target) {
uint16_t r_size = 0; // size of configuration data
uint16_t r_command = 0; // command data
uint16_t remainder_size = 0; // remainder size
const uint16_t *reg_ptr; // pointer to array of data to be sent to the chip
const uint16_t *reg_ptr = nullptr; // pointer to array of data to be sent to the chip

switch(r_target) // selects target
{
Expand Down

0 comments on commit 16a8e0b

Please sign in to comment.