Skip to content

Commit 0e1486d

Browse files
author
Federico Fissore
committed
Examples: mass code format. See example_formatter.conf
1 parent 52b898e commit 0e1486d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libraries/SPI/examples/BarometricPressureSensor/BarometricPressureSensor.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void loop() {
8585
}
8686

8787
//Read from or write to register from the SCP1000:
88-
unsigned int readRegister(byte thisRegister, int bytesToRead ) {
88+
unsigned int readRegister(byte thisRegister, int bytesToRead) {
8989
byte inByte = 0; // incoming byte from the SPI
9090
unsigned int result = 0; // result to return
9191
Serial.print(thisRegister, BIN);
@@ -117,7 +117,7 @@ unsigned int readRegister(byte thisRegister, int bytesToRead ) {
117117
// take the chip select high to de-select:
118118
digitalWrite(chipSelectPin, HIGH);
119119
// return the result:
120-
return(result);
120+
return (result);
121121
}
122122

123123

libraries/SPI/examples/DigitalPotControl/DigitalPotControl.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const int slaveSelectPin = 10;
3636

3737
void setup() {
3838
// set the slaveSelectPin as an output:
39-
pinMode (slaveSelectPin, OUTPUT);
39+
pinMode(slaveSelectPin, OUTPUT);
4040
// initialize SPI:
4141
SPI.begin();
4242
}

0 commit comments

Comments
 (0)