aboutsummaryrefslogtreecommitdiffstats
path: root/rayer_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'rayer_spi.c')
-rw-r--r--rayer_spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rayer_spi.c b/rayer_spi.c
index 417fde99..0011bc0e 100644
--- a/rayer_spi.c
+++ b/rayer_spi.c
@@ -92,6 +92,7 @@ static const struct bitbang_spi_master bitbang_spi_master_rayer = {
.set_sck = rayer_bitbang_set_sck,
.set_mosi = rayer_bitbang_set_mosi,
.get_miso = rayer_bitbang_get_miso,
+ .half_period = 0,
};
int rayer_spi_init(void)
@@ -171,8 +172,7 @@ int rayer_spi_init(void)
/* Get the initial value before writing to any line. */
lpt_outbyte = INB(lpt_iobase);
- /* Zero halfperiod delay. */
- if (bitbang_spi_init(&bitbang_spi_master_rayer, 0))
+ if (bitbang_spi_init(&bitbang_spi_master_rayer))
return 1;
return 0;