andrewn / neue-radio

Neue Radio: Prototype connected object using web technologies
10 stars 6 forks source link

Workaround SPI issue on Pi #15

Open andrewn opened 6 years ago

andrewn commented 6 years ago

After reboot the SPI interface on the Pi seems to be enabled yet no messages arrive from the card reader. The workaround seems to be disabling SPI using raspi-config and enabling it again before starting the service.

I tried doing this using a ExecStartPre= flag in systemd but this didn't work.

andrewn commented 6 years ago

Good point about running a root. It always was because it's being started by systemd and no other user is specified but this isn't ideal.

andrewn commented 6 years ago

Also, I've just tested this some more and it seems it only intermittently fixes the issue. So I think let's hold off on merging until I've found a consistent fix. 😢