diff --git a/apps/python/PitConfig/CheckNewVersion.ahk b/apps/python/PitConfig/CheckNewVersion.ahk index e38fd81..986ef74 100644 --- a/apps/python/PitConfig/CheckNewVersion.ahk +++ b/apps/python/PitConfig/CheckNewVersion.ahk @@ -7,8 +7,9 @@ FileRead, CurrVer, version.txt UrlDownloadToFile, https://raw.githubusercontent.com/Marocco2/PitConfig-Marocco2-version/master/apps/python/PitConfig/version.txt, version.txt FileRead, NewVer, version.txt IniRead, EnableOTA, PitConfig.ini, AUTOUPDATE, Enable, 1 -if (CurrVer != NewVer) and (EnableOTA == 1) +if (CurrVer != NewVer and EnableOTA == 1) { UrlDownloadToFile, https://raw.githubusercontent.com/Marocco2/PitConfig-Marocco2-plugin/%NewVer%/apps/python/PitConfig/Hotkey.exe, Hotkey.exe UrlDownloadToFile, https://raw.githubusercontent.com/Marocco2/PitConfig-Marocco2-plugin/%NewVer%/apps/python/PitConfig/PitConfig.py, PitConfig.py UrlDownloadToFile, https://raw.githubusercontent.com/Marocco2/PitConfig-Marocco2-plugin/%NewVer%/apps/python/PitConfig/CheckNewVersion.exe, CheckNewVersion.exe + } Exit \ No newline at end of file diff --git a/apps/python/PitConfig/CheckNewVersion.exe b/apps/python/PitConfig/CheckNewVersion.exe index 0936258..d4e791f 100644 Binary files a/apps/python/PitConfig/CheckNewVersion.exe and b/apps/python/PitConfig/CheckNewVersion.exe differ diff --git a/apps/python/PitConfig/PitConfig.py b/apps/python/PitConfig/PitConfig.py index da2fc66..996ebe8 100644 --- a/apps/python/PitConfig/PitConfig.py +++ b/apps/python/PitConfig/PitConfig.py @@ -33,7 +33,7 @@ import ctypes from PitConfig_lib import sim_info -version = "1.2" +version = "1.2.1" #r = get('https://api.github.com/repos/Marocco2/PitConfig-Marocco2-version/releases/latest') #request = r.json() #lastversion = request['tag_name'] @@ -687,7 +687,6 @@ def Preset3Event(name, state): global Preset WritePreset() - Preset = 3 ac.setValue(Preset1, 0) ac.setValue(Preset2, 0) @@ -709,6 +708,7 @@ def Preset4Event(name, state): ReadPreset() def acShutdown(): + global superhot WritePreset() subprocess.Popen.kill(superhot) diff --git a/apps/python/PitConfig/version.txt b/apps/python/PitConfig/version.txt index ea710ab..cb174d5 100644 --- a/apps/python/PitConfig/version.txt +++ b/apps/python/PitConfig/version.txt @@ -1 +1 @@ -1.2 \ No newline at end of file +1.2.1 \ No newline at end of file