aboutsummaryrefslogtreecommitdiff
path: root/libraries/SPI/examples/BarometricPressureSensor/BarometricPressureSensor.ino
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/SPI/examples/BarometricPressureSensor/BarometricPressureSensor.ino')
-rw-r--r--libraries/SPI/examples/BarometricPressureSensor/BarometricPressureSensor.ino4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/SPI/examples/BarometricPressureSensor/BarometricPressureSensor.ino b/libraries/SPI/examples/BarometricPressureSensor/BarometricPressureSensor.ino
index 8104fcb..df73ade 100644
--- a/libraries/SPI/examples/BarometricPressureSensor/BarometricPressureSensor.ino
+++ b/libraries/SPI/examples/BarometricPressureSensor/BarometricPressureSensor.ino
@@ -85,7 +85,7 @@ void loop() {
}
//Read from or write to register from the SCP1000:
-unsigned int readRegister(byte thisRegister, int bytesToRead ) {
+unsigned int readRegister(byte thisRegister, int bytesToRead) {
byte inByte = 0; // incoming byte from the SPI
unsigned int result = 0; // result to return
Serial.print(thisRegister, BIN);
@@ -117,7 +117,7 @@ unsigned int readRegister(byte thisRegister, int bytesToRead ) {
// take the chip select high to de-select:
digitalWrite(chipSelectPin, HIGH);
// return the result:
- return(result);
+ return (result);
}