Skip to content

Commit 6ab02e5

Browse files
authored
Fix Java PATH problem (improved version)
Passes the Arduino IDE installation path to the batch file.
1 parent b9fbddd commit 6ab02e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/win/maple_upload.bat

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ set driverLetter=%~dp0
55
set driverLetter=%driverLetter:~0,2%
66
%driverLetter%
77
cd %~dp0
8-
if exist "C:\Program Files (x86)\Arduino\java\bin" set PATH=C:\Program Files (x86)\Arduino\java\bin;%PATH%
9-
java -jar maple_loader.jar %1 %2 %3 %4 %5 %6 %7 %8 %9
8+
set PATH=%5\java\bin;%PATH%
9+
java -jar maple_loader.jar %1 %2 %3 %4
1010

1111
for /l %%x in (1, 1, 40) do (
1212
ping -w 50 -n 1 192.0.2.1 > nul

0 commit comments

Comments
 (0)