led and spi2 fix