From 8b6fb390bd1569bc36d64a0052d2ecd349dddb8a Mon Sep 17 00:00:00 2001 From: Fuzzy Express <127012288+FuzzyExpress@users.noreply.github.com> Date: Thu, 14 Dec 2023 00:04:41 -0600 Subject: [PATCH] Fix type of 'which' in OFC.py # Setting the config.py file where all the data will be stored # which was spelled whihc. --- OFC.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OFC.py b/OFC.py index 7c081ee..88a0425 100644 --- a/OFC.py +++ b/OFC.py @@ -59,7 +59,7 @@ def create_dialog(TITLE, TEXT, YES, NO, x, y, RESPONSE_TYPE): CONFIG_FILE = open(PATH_TO_CONFIG, "r") except FileNotFoundError: CONFIG = [] - CHOICE = "\nIf you want universal auto fan profile whihc is as below then [SELECT YES]\n\tAUTO SPEEDS = [[0, 40, 48, 56, 64, 72, 80], [0, 48, 56, 64, 72, 79, 86]]\n\nIf you want to fetch vendor specified auto fan profile which will require you to \n\t1 :- Close this(Before closing read all the steps)\n\t2 :- boot into windows\n\t3 :- set the fan profile to auto\n\t4 :- boot back to linux and then [SELECT NO]" + CHOICE = "\nIf you want universal auto fan profile which is as below then [SELECT YES]\n\tAUTO SPEEDS = [[0, 40, 48, 56, 64, 72, 80], [0, 48, 56, 64, 72, 79, 86]]\n\nIf you want to fetch vendor specified auto fan profile which will require you to \n\t1 :- Close this(Before closing read all the steps)\n\t2 :- boot into windows\n\t3 :- set the fan profile to auto\n\t4 :- boot back to linux and then [SELECT NO]" LINE_YES = "PROFILE = 1\nAUTO_SPEED = [[0, 40, 48, 56, 64, 72, 80], [0, 48, 56, 64, 72, 79, 86]]" LINE_NO = "PROFILE = 1\nAUTO_SPEED = [["+str(ECT.read(0x72, 1))+", "+str(ECT.read(0x73, 1))+", "+str(ECT.read(0x74, 1))+", "+str(ECT.read(0x75, 1))+", "+str(ECT.read(0x76, 1))+", "+str(ECT.read(0x77, 1))+", "+str(ECT.read(0x78, 1))+"], ["+str(ECT.read(0x8a, 1))+", "+str(ECT.read(0x8b, 1))+", "+str(ECT.read(0x8c, 1))+", "+str(ECT.read(0x8d, 1))+", "+str(ECT.read(0x8e, 1))+", "+str(ECT.read(0x8f, 1))+", "+str(ECT.read(0x90, 1))+"]]" CONFIG.append(create_dialog("Auto Profile Selection", CHOICE, LINE_YES, LINE_NO, 300, 150, 1))