Skip to content

Commit 1cbc09e

Browse files
committed
chore: small changes in flags
1 parent 79f31e1 commit 1cbc09e

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

platformio.ini

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ lib_deps =
1818
# -cavrisp2
1919
# -cdragon_isp
2020
# -cavrispmkII
21-
upload_command = avrdude -vv -b57600 -pm328p -c avrisp -Pcom10 $UPLOAD_FLAGS -U flash:w:$SOURCE:i
21+
22+
upload_command = avrdude -vv -b57600 -pm328p -c avrisp -Pcom9 $UPLOAD_FLAGS -U flash:w:$SOURCE:i
2223

2324
# upload_protocol=custom
2425
# upload_speed=115200
@@ -39,18 +40,18 @@ upload_command = avrdude -vv -b57600 -pm328p -c avrisp -Pcom10 $UPLOAD_FLAGS -U
3940
platform=native
4041
build_type = release
4142
test_ignore = cross/*
42-
build_flags = -DNATIVE
43-
debug_test = noarch/test_gun
43+
build_flags = -DNATIVE -O0
44+
debug_test = noarch/test_contactor
4445
build_src_filter = ${env.src_filter} -<TargetApp.cpp> -<GunApp.cpp>
4546

4647
[env:native_debug]
4748
lib_deps = ${env.lib_deps}
4849
fakeit=https://github.com/FabioBatSilva/ArduinoFake.git
4950
platform=native
5051
build_type = debug
51-
debug_build_flags = -Og -ggdb3 -g3 -DNATIVE -UAVR
52+
debug_build_flags = -Og -ggdb3 -g3 -DNATIVE
5253
test_ignore = cross/*
53-
debug_test = noarch/test_gun
54+
debug_test = native/test_gun
5455
build_src_filter = ${env.src_filter} -<TargetApp.cpp> -<GunApp.cpp>
5556

5657
[env:cross]
@@ -87,8 +88,8 @@ upload_command = avrdude -vv -b57600 -pm328p -c avrisp -Pcom10 $UPLOAD_FLAGS -U
8788
platform = atmelavr
8889
board = ATmega328P
8990
build_type = release
90-
build_flags = -DAVR
91+
build_flags = -DAVR -O2
9192
test_ignore =
9293
native/*
9394
noarch/*
94-
build_src_filter = ${env.src_filter} -<TargetApp.cpp> -<ConsoleTargets.cpp>
95+
build_src_filter = ${env.src_filter} -<TargetApp.cpp> -<ConsoleTargets.cpp>

0 commit comments

Comments
 (0)