From cb8b0321e2931d206b54e83773fb469b06325235 Mon Sep 17 00:00:00 2001 From: emmebrusa Date: Wed, 3 Apr 2024 09:10:42 +0200 Subject: [PATCH] v20.1C.2 update 3 --- changelog.txt | 8 ++++++++ commits.txt | 1 + compile_and_flash_20.bat | 10 +++++----- compile_and_flash_20.sh | 6 +++--- 4 files changed, 17 insertions(+), 8 deletions(-) diff --git a/changelog.txt b/changelog.txt index b80719df..425b485a 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,12 @@ TSDZ2 Open Source Firmware for stock displays XH18 - VLCD5 - VLCD6 +List of changes v20.1C.2 update 3 + 1 - Fix Makefile clear_eeprom with -s eeprom (by @apolselli) + 2 - Fix compiler warning for missing void in function prototypes (by @chgpalmer) + 3 - Improved building (by @dzid26) + 4 - Irq uart priority level set + List of changes v20.1C.2 update 2 1 - Improved Walk assist speed adjustment. 2 - Added legal throttle, only works when pedaling, in street mode. @@ -11,6 +17,8 @@ List of changes v20.1C.2 update 2 7 - Fixed comms error detection (by lcha78). 8 - Added manuals in Spanish (by ashrambo). 9 - Building script improvements (by dzid26) + 10 - Compile and flash automatically from Linux and Mac OS (by IArchi) + 11 - VLCD6, fixed SOC display at power on List of changes v20.1C.2 update 1 1 - Fixed "Startup assist" feature. diff --git a/commits.txt b/commits.txt index e93dfaf5..749ad83f 100644 --- a/commits.txt +++ b/commits.txt @@ -1,3 +1,4 @@ +40 - 2024/02/29 - v20.1C.2 update 3 39 - 2022/09/25 - v20.1C.2 update 2 38 - 2022/09/25 - v20.1C.2 alpha 2 37 - 2022/05/25 - v20.1C.2 update 1 diff --git a/compile_and_flash_20.bat b/compile_and_flash_20.bat index 9062394e..4de24b3b 100644 --- a/compile_and_flash_20.bat +++ b/compile_and_flash_20.bat @@ -1,6 +1,6 @@ @ECHO OFF -SET version=20.1C.2-2 +SET version=20.1C.2-3 SET settings_date=%1 SET release_folder=%~dp0releases @@ -12,10 +12,10 @@ CALL compile.bat || GOTO :EXIT ECHO Copying firmware to release folder. ECHO %release_folder%\TSDZ2-%version%-PROGRAM.hex -MKDIR %release_folder% >NUL 2>NUL -COPY ..\..\bin\main.ihx %release_folder%\TSDZ2-%version%.hex -MKDIR %backup_folder% >NUL 2>NUL -COPY ..\..\bin\main.ihx %backup_folder%\TSDZ2-%settings_date%.ihx >NUL 2>NUL +MKDIR "%release_folder%" >NUL 2>NUL +COPY ..\..\bin\main.ihx "%release_folder%\TSDZ2-%version%.hex" +MKDIR "%backup_folder%" >NUL 2>NUL +COPY ..\..\bin\main.ihx "%backup_folder%\TSDZ2-%settings_date%.ihx" >NUL 2>NUL echo Press any key to flash... (Ctl+C to stop) pause > nul diff --git a/compile_and_flash_20.sh b/compile_and_flash_20.sh index 7b0bc8c7..dcb1cb05 100644 --- a/compile_and_flash_20.sh +++ b/compile_and_flash_20.sh @@ -1,7 +1,7 @@ #!/bin/bash set -e -version="20.1C.2-2" +version="20.1C.2-3" settings_date=$1 release_folder=$(pwd)/releases @@ -20,8 +20,8 @@ make all # Save new firmware echo Copying firmware to release folder. echo $release_folder/TSDZ2-$version-$settings_date.hex -mkdir -p $release_folder -yes | cp -rf ../../bin/main.ihx $release_folder/TSDZ2-$version-$settings_date.hex +mkdir -p "$release_folder" +yes | cp -rf ../../bin/main.ihx "$release_folder/TSDZ2-$version-$settings_date.hex" backup=no while true; do