Merge pull request #29 from vojtech/master

Fix OneWire Setup
This commit is contained in:
Manuel83 2021-03-07 19:25:58 +01:00 committed by GitHub
commit 367a0dfe9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,7 +68,7 @@ def create_home_folder_structure():
def setup_one_wire():
print("Setting up 1Wire")
with open('/boot/config.txt', 'wb') as f:
with open('/boot/config.txt', 'w') as f:
f.write("dtoverlay=w1-gpio,gpiopin=4,pullup=on")
print("/boot/config.txt created")