Skip to content

Commit

Permalink
format code according to conventions [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
qmk-bot committed Apr 8, 2020
1 parent 400ca2d commit 974f83e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/avr/spi_master.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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))) {
Expand Down Expand Up @@ -157,7 +157,7 @@ void spi_stop(void) {
currentSlavePin = NO_PIN;
SPCR &= ~(currentSlaveConfig);
currentSlaveConfig = 0;
SPSR = 0;
currentSlave2X = false;
SPSR = 0;
currentSlave2X = false;
}
}

0 comments on commit 974f83e

Please sign in to comment.