From 0717a454499ef378270c1bd9063d327da9bedd5e Mon Sep 17 00:00:00 2001 From: Vojtech Hrdina Date: Fri, 19 Feb 2021 22:41:53 +0000 Subject: [PATCH] Fix OneWire Setup --- cbpi/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cbpi/cli.py b/cbpi/cli.py index f9851b2..11915fc 100644 --- a/cbpi/cli.py +++ b/cbpi/cli.py @@ -67,7 +67,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")