Skip to content

Commit

Permalink
Merge pull request #1 from PaulStoffregen/master
Browse files Browse the repository at this point in the history
Fix compiler warning in BarometricPressureWebServer example
  • Loading branch information
vjmuzik committed Jun 21, 2020
2 parents 070bd5b + 9f41e82 commit 9c8560c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ unsigned int readRegister(byte registerName, int numBytes) {
// take the chip select low to select the device:
digitalWrite(chipSelectPin, LOW);
// send the device the register you want to read:
int command = SPI.transfer(registerName);
SPI.transfer(registerName);
// send a value of 0 to read the first byte returned:
inByte = SPI.transfer(0x00);

Expand Down

0 comments on commit 9c8560c

Please sign in to comment.