From b5a130afb51c971fd7ceca8834b6055f1eada253 Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Mon, 6 Jul 2015 15:18:33 +0200 Subject: Examples: mass code format. See example_formatter.conf --- .../examples/BarometricPressureSensor/BarometricPressureSensor.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libraries/SPI/examples/BarometricPressureSensor/BarometricPressureSensor.ino') 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); } -- cgit v1.2.3-18-g5258