From b0e31ac28451e35f4dfec73d729d5fb1febdb59c Mon Sep 17 00:00:00 2001
From: norbert-walter <norbert-walter@web.de>
Date: Wed, 20 Dec 2023 12:02:45 +0100
Subject: [PATCH] Changes

---
 lib/obp60task/platformio.ini |  1 +
 lib/obp60task/run            | 17 +++++++++--------
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/lib/obp60task/platformio.ini b/lib/obp60task/platformio.ini
index c8a1a7e..6a058e4 100644
--- a/lib/obp60task/platformio.ini
+++ b/lib/obp60task/platformio.ini
@@ -4,6 +4,7 @@
 #by uncommenting the next line
 default_envs = nodemcu32s_obp60
 [env:nodemcu32s_obp60]
+platform = espressif32@6.3.2
 board_build.partitions = lib/obp60task/partitions_obp60.csv
 board = nodemcu-32s
 lib_deps = 
diff --git a/lib/obp60task/run b/lib/obp60task/run
index 4121e53..820d127 100644
--- a/lib/obp60task/run
+++ b/lib/obp60task/run
@@ -14,19 +14,20 @@ toolpath="./docs/flash_tool"
 
 # Install tools
 echo "Installing tools"
+cd /workspace/esp32-nmea2000
 pip3 install -U esptool
-pip3 install -platformio
+pip3 install  platformio
 
 # Compile the firmware
 echo "Compiling Firmware"
-platformio run
+platformio run -e nodemcu32s_obp60
 
 # Copy all bin files in docs folder for online flash tool
-echo "Copy bin files"
-cp $projectpath/bootloader.bin $toolpath/bootloader.bin
-cp $projectpath/partitions.bin $toolpath/partitions.bin
-cp $projectpath/firmware.bin $toolpath/firmware.bin
+#echo "Copy bin files"
+#cp $projectpath/bootloader.bin $toolpath/bootloader.bin
+#cp $projectpath/partitions.bin $toolpath/partitions.bin
+#cp $projectpath/firmware.bin $toolpath/firmware.bin
 
 # Merge all bin files to one merge file
-echo "Merge all bin files"
-esptool.py --chip ESP32 merge_bin -o $toolpath/merged-firmware.bin --flash_mode dio --flash_size 4MB 0x1000 $toolpath/bootloader.bin 0x8000 $toolpath/partitions.bin 0x10000 $toolpath/firmware.bin
+#echo "Merge all bin files"
+#esptool.py --chip ESP32 merge_bin -o $toolpath/merged-firmware.bin --flash_mode dio --flash_size 4MB 0x1000 $toolpath/bootloader.bin 0x8000 $toolpath/partitions.bin 0x10000 $toolpath/firmware.bin