summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2020-04-08 01:38:16 +0000
committerQMK Bot <hello@qmk.fm>2020-04-08 01:38:16 +0000
commit974f83ec4b935a019bcb9c9c1e5ef57598267865 (patch)
treee79c7799abc8f6b477a87345ba0706ad78254c36 /drivers
parent400ca2d035d7bdb85c077a53b2cd85cdd04882ab (diff)
format code according to conventions [skip ci]
Diffstat (limited to 'drivers')
-rw-r--r--drivers/avr/spi_master.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/avr/spi_master.c b/drivers/avr/spi_master.c
index 497d50536a..3f405ddf5c 100644
--- a/drivers/avr/spi_master.c
+++ b/drivers/avr/spi_master.c
@@ -34,9 +34,9 @@
# define SPI_MISO_PIN B4
#endif
-static pin_t currentSlavePin = NO_PIN;
+static pin_t currentSlavePin = NO_PIN;
static uint8_t currentSlaveConfig = 0;
-static bool currentSlave2X = false;
+static bool currentSlave2X = false;
void spi_init(void) {
writePinHigh(SPI_SS_PIN);
@@ -114,7 +114,7 @@ spi_status_t spi_write(uint8_t data, uint16_t timeout) {
}
spi_status_t spi_read(uint16_t timeout) {
- SPDR = 0x00; // Dummy
+ SPDR = 0x00; // Dummy
uint16_t timeout_timer = timer_read();
while (!(SPSR & _BV(SPIF))) {
@@ -157,7 +157,7 @@ void spi_stop(void) {
currentSlavePin = NO_PIN;
SPCR &= ~(currentSlaveConfig);
currentSlaveConfig = 0;
- SPSR = 0;
- currentSlave2X = false;
+ SPSR = 0;
+ currentSlave2X = false;
}
}