Skip to content

Commit 7ce8b26

Browse files
committed
update to firmware build commands
changed to beta folder as third firmware option maslowcnc repo references changed to webcontrolcnc repo changed firmware all firmware build scripts with the above changes
1 parent 143cc1f commit 7ce8b26

5 files changed

Lines changed: 49 additions & 50 deletions

File tree

Actions/actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,7 @@ def upgradeFirmware(self, version):
14361436
path = home+"/firmware/beta/*.hex"
14371437
if version == 1:
14381438
self.data.ui_queue1.put("SpinnerMessage", "", "Stock Firmware Update in Progress, Please Wait.")
1439-
path = home+"/firmware/maslowcnc/*.hex"
1439+
path = home+"/firmware/webcontrolcnc/*.hex"
14401440
if version == 2:
14411441
self.data.ui_queue1.put("SpinnerMessage", "", "Holey Firmware Update in Progress, Please Wait.")
14421442
path = home+"/firmware/holey/*.hex"

buildFirmware.sh

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,34 @@ mkdir build
44
rm -rf firmware
55
mkdir firmware
66
cd firmware
7-
mkdir madgrizzle
8-
mkdir maslowcnc
7+
mkdir beta
8+
mkdir webcontrolcnc
99
mkdir holey
1010

1111
cd ../build
12-
madgrizzle_firmware_repo=https://github.com/madgrizzle/Firmware.git
13-
madgrizzle_firmware_sha=bf4350ffd9bc154832505fc0125abd2c4c04dba7
14-
git clone $madgrizzle_firmware_repo firmware/madgrizzle
15-
cd firmware/madgrizzle
16-
git checkout $madgrizzle_firmware_sha
12+
beta_firmware_repo=https://github.com/WebControlCNC/Firmware.git
13+
beta_firmware_sha=bf4350ffd9bc154832505fc0125abd2c4c04dba7
14+
git clone $beta_firmware_repo firmware/beta
15+
cd firmware/beta
16+
git checkout $beta_firmware_sha
1717
pio lib install "Servo"
1818
pio run -e megaatmega2560
19-
20-
mv .pio/build/megaatmega2560/firmware.hex ./madgrizzle-$(sed -n -e 's/^.*VERSIONNUMBER //p' cnc_ctrl_v1/Maslow.h).hex
19+
mv .pio/build/megaatmega2560/firmware.hex ./beta-$(sed -n -e 's/^.*VERSIONNUMBER //p' cnc_ctrl_v1/Maslow.h).hex
2120

2221
cd ../..
2322

24-
maslowcnc_firmware_repo=https://github.com/MaslowCNC/Firmware.git
25-
maslowcnc_firmware_sha=e1e0d020fff1f4f7c6b403a26a85a16546b7e15b
26-
git clone $maslowcnc_firmware_repo firmware/maslowcnc
27-
cd firmware/maslowcnc
28-
git checkout $maslowcnc_firmware_sha
23+
webcontrolcnc_firmware_repo=https://github.com/WebControlCNC/Firmware.git
24+
webcontrolcnc_firmware_sha=e1e0d020fff1f4f7c6b403a26a85a16546b7e15b
25+
git clone $webcontrolcnc_firmware_repo firmware/webcontrolcnc
26+
cd firmware/webcontrolcnc
27+
git checkout $webcontrolcnc_firmware_sha
2928
pio lib install "Servo"
3029
pio run -e megaatmega2560
31-
mv .pio/build/megaatmega2560/firmware.hex ./maslowcnc-$(sed -n -e 's/^.*VERSIONNUMBER //p' cnc_ctrl_v1/Maslow.h).hex
30+
mv .pio/build/megaatmega2560/firmware.hex ./webcontrolcnc-$(sed -n -e 's/^.*VERSIONNUMBER //p' cnc_ctrl_v1/Maslow.h).hex
3231

3332
cd ../..
3433

35-
holey_firmware_repo=https://github.com/madgrizzle/Firmware.git
34+
holey_firmware_repo=https://github.com/WebControlCNC/Firmware.git
3635
holey_firmware_sha=950fb23396171cbd456c2d4149455cc45f5e6bc3
3736
git clone $holey_firmware_repo firmware/holey
3837
cd firmware/holey

buildFirmware10.bat

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,36 @@ del firmware /s /f /q
77
rmdir firmware /s /q
88
mkdir firmware
99
cd firmware
10-
mkdir madgrizzle
11-
mkdir maslowcnc
10+
mkdir beta
11+
mkdir webcontrolcnc
1212
mkdir holey
1313

1414
cd ../build
15-
SET madgrizzle_firmware_repo=https://github.com/madgrizzle/Firmware.git
16-
SET madgrizzle_firmware_sha=bf4350ffd9bc154832505fc0125abd2c4c04dba7
17-
git clone %madgrizzle_firmware_repo% firmware/madgrizzle
18-
cd firmware/madgrizzle
19-
git checkout %madgrizzle_firmware_sha%
15+
SET beta_firmware_repo=https://github.com/WebControlCNC/Firmware.git
16+
SET beta_firmware_sha=bf4350ffd9bc154832505fc0125abd2c4c04dba7
17+
git clone %beta_firmware_repo% firmware/beta
18+
cd firmware/beta
19+
git checkout %beta_firmware_sha%
2020
pio run -e megaatmega2560
2121

22-
copy .pio/build/megaatmega2560/firmware.hex ~/WebControl/firmware/madgrizzle/madgrizzle-$(sed -n -e 's/^.*VERSIONNUMBER //p' cnc_ctrl_v1/Maslow.h).hex
22+
copy .pio/build/megaatmega2560/firmware.hex ~/WebControl/firmware/beta/beta-$(sed -n -e 's/^.*VERSIONNUMBER //p' cnc_ctrl_v1/Maslow.h).hex
2323

2424
cd ../..
2525

26-
SET maslowcnc_firmware_repo=https://github.com/MaslowCNC/Firmware.git
27-
SET maslowcnc_firmware_sha=e1e0d020fff1f4f7c6b403a26a85a16546b7e15b
28-
git clone %maslowcnc_firmware_repo% firmware/maslowcnc
29-
cd firmware/maslowcnc
30-
git checkout %maslowcnc_firmware_sha%
26+
SET webcontrolcnc_firmware_repo=https://github.com/WebControlCNC/Firmware.git
27+
SET webcontrolcnc_firmware_sha=e1e0d020fff1f4f7c6b403a26a85a16546b7e15b
28+
git clone %webcontrolcnc_firmware_repo% firmware/maslowcnc
29+
cd firmware/webcontrolcnc
30+
git checkout %webcontrolcnc_firmware_sha%
3131
pio run -e megaatmega2560
32-
copy .pio/build/megaatmega2560/firmware.hex ~/WebControl/firmware/maslowcnc/maslowcnc-$(sed -n -e 's/^.*VERSIONNUMBER //p' cnc_ctrl_v1/Maslow.h).hex
32+
copy .pio/build/megaatmega2560/firmware.hex ~/WebControl/firmware/webcontrolcnc/webcontrolcnc-$(sed -n -e 's/^.*VERSIONNUMBER //p' cnc_ctrl_v1/Maslow.h).hex
3333

3434
cd ../..
3535

36-
SET holey_firmware_repo=https://github.com/madgrizzle/Firmware.git
36+
SET holey_firmware_repo=https://github.com/webcontrolcnc/Firmware.git
3737
SET holey_firmware_sha=950fb23396171cbd456c2d4149455cc45f5e6bc3
3838
git clone %holey_firmware_repo% firmware/holey
3939
cd firmware/holey
4040
git checkout %holey_firmware_sha%
4141
pio run -e megaatmega2560
42-
copy .pio/build/megaatmega2560/firmware.hex C:\Users\jhogan\Documents\Github\WebControlfirmware/holey/holey-$(sed -n -e 's/^.*VERSIONNUMBER //p' cnc_ctrl_v1/Maslow.h).hex
42+
copy .pio/build/megaatmega2560/firmware.hex ~\WebControlfirmware/holey/holey-$(sed -n -e 's/^.*VERSIONNUMBER //p' cnc_ctrl_v1/Maslow.h).hex

buildLinux1.sh

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,33 @@ mkdir build
44
rm -rf firmware
55
mkdir firmware
66
cd firmware
7-
mkdir madgrizzle
8-
mkdir maslowcnc
7+
mkdir beta
8+
mkdir webcontrolcnc
99
mkdir holey
1010

1111
cd ../build
12-
madgrizzle_firmware_repo=https://github.com/madgrizzle/Firmware.git
13-
madgrizzle_firmware_sha=bf4350ffd9bc154832505fc0125abd2c4c04dba7
14-
git clone $madgrizzle_firmware_repo firmware/madgrizzle
15-
cd firmware/madgrizzle
16-
git checkout $madgrizzle_firmware_sha
12+
beta_firmware_repo=https://github.com/WebControlCNC/Firmware.git
13+
beta_firmware_sha=bf4350ffd9bc154832505fc0125abd2c4c04dba7
14+
git clone $beta_firmware_repo firmware/beta
15+
cd firmware/beta
16+
git checkout $beta_firmware_sha
1717
pio run -e megaatmega2560
1818

19-
mv .pio/build/megaatmega2560/firmware.hex ~/WebControl/firmware/madgrizzle/madgrizzle-$(sed -n -e 's/^.*VERSIONNUMBER //p' cnc_ctrl_v1/Maslow.h).hex
19+
mv .pio/build/megaatmega2560/firmware.hex ~/WebControl/firmware/beta/beta-$(sed -n -e 's/^.*VERSIONNUMBER //p' cnc_ctrl_v1/Maslow.h).hex
2020

2121
cd ../..
2222

23-
maslowcnc_firmware_repo=https://github.com/MaslowCNC/Firmware.git
24-
maslowcnc_firmware_sha=e1e0d020fff1f4f7c6b403a26a85a16546b7e15b
25-
git clone $maslowcnc_firmware_repo firmware/maslowcnc
26-
cd firmware/maslowcnc
27-
git checkout $maslowcnc_firmware_sha
23+
webcontrolcnc_firmware_repo=https://github.com/WebControlCNC/Firmware.git
24+
webcontrolcnc_firmware_sha=e1e0d020fff1f4f7c6b403a26a85a16546b7e15b
25+
git clone $webcontrolcnc_firmware_repo firmware/maslowcnc
26+
cd firmware/webcontrolcnc
27+
git checkout $webcontrolcnc_firmware_sha
2828
pio run -e megaatmega2560
29-
mv .pio/build/megaatmega2560/firmware.hex ~/WebControl/firmware/maslowcnc/maslowcnc-$(sed -n -e 's/^.*VERSIONNUMBER //p' cnc_ctrl_v1/Maslow.h).hex
29+
mv .pio/build/megaatmega2560/firmware.hex ~/WebControl/firmware/webcontrolcnc/webcontrolcnc-$(sed -n -e 's/^.*VERSIONNUMBER //p' cnc_ctrl_v1/Maslow.h).hex
3030

3131
cd ../..
3232

33-
holey_firmware_repo=https://github.com/madgrizzle/Firmware.git
33+
holey_firmware_repo=https://github.com/WebControlCNC/Firmware.git
3434
holey_firmware_sha=950fb23396171cbd456c2d4149455cc45f5e6bc3
3535
git clone $holey_firmware_repo firmware/holey
3636
cd firmware/holey

config/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ def parseFirmwareVersions(self):
728728
if hasattr(sys, '_MEIPASS'):
729729
home = os.path.join(sys._MEIPASS)
730730
print(self.home)
731-
path = home+"/firmware/madgrizzle/*.hex"
731+
path = home+"/firmware/beta/*.hex"
732732
for filename in glob.glob(path):
733733
version = filename.split("-")
734734
maxIndex = len(version)-1
@@ -737,7 +737,7 @@ def parseFirmwareVersions(self):
737737
self.data.customFirmwareVersion = version[0]
738738
else:
739739
self.data.customFirmwareVersion = "n/a"
740-
path = home+"/firmware/maslowcnc/*.hex"
740+
path = home+"/firmware/webcontrolcnc/*.hex"
741741
for filename in glob.glob(path):
742742
version = filename.split("-")
743743
maxIndex = len(version)-1

0 commit comments

Comments
 (0)