diff --git a/commands/spi.c b/commands/spi.c index 55a0e25..d35aa1c 100644 --- a/commands/spi.c +++ b/commands/spi.c @@ -67,6 +67,7 @@ printf("spi bus %d not found\n", bus); return -ENODEV; } + spi.master = spi.controller; if (spi.chip_select >= spi.controller->num_chipselect) { printf("spi chip select (%d) >= controller num chipselect (%d)\n",