Add option to enable spi

This commit is contained in:
Tobias Reisinger 2024-05-10 16:24:54 +02:00
parent 83ca8b8d48
commit a5f3bf9128
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,6 @@
namespace: serguzim namespace: serguzim
name: sbc name: sbc
version: 1.0.1 version: 1.0.2
readme: README.md readme: README.md
authors: authors:
- Tobias Reisinger <tobias@msrg.cc> - Tobias Reisinger <tobias@msrg.cc>

View file

@ -37,6 +37,7 @@
regexp: '^#dtparam=spi=off$' regexp: '^#dtparam=spi=off$'
replace: 'dtparam=spi=on' replace: 'dtparam=spi=on'
become: true become: true
when: dietpi.enable_spi | default(False)
- name: Try to copy Automation_Custom_Script.sh - name: Try to copy Automation_Custom_Script.sh