Skip to content

Commit

Permalink
Fixed another warning that progBuffer was uninitialized in MPU9150.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
amiller27 committed May 13, 2016
1 parent 66d88b4 commit 2aebda2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Arduino/MPU9150/MPU9150.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3059,6 +3059,8 @@ bool MPU9150::writeDMPConfigurationSet(const uint8_t *data, uint16_t dataSize, b
uint16_t i, j;
if (useProgMem) {
progBuffer = (uint8_t *)malloc(8); // assume 8-byte blocks, realloc later if necessary
} else {
progBuffer = NULL;
}

// config set data is a long string of blocks with the following structure:
Expand Down

0 comments on commit 2aebda2

Please sign in to comment.