Skip to content

Commit

Permalink
Fix compiler warning in BarometricPressureWebServer example
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulStoffregen committed Jun 19, 2020
1 parent 0c22c08 commit 9f41e82
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 9f41e82

Please sign in to comment.