mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-10 01:17:42 +01:00
Fix OneWire Setup
This commit is contained in:
parent
f1bcd1e543
commit
0717a45449
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ def create_home_folder_structure():
|
||||||
|
|
||||||
def setup_one_wire():
|
def setup_one_wire():
|
||||||
print("Setting up 1Wire")
|
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")
|
f.write("dtoverlay=w1-gpio,gpiopin=4,pullup=on")
|
||||||
print("/boot/config.txt created")
|
print("/boot/config.txt created")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue