Skip to content

Commit

Permalink
PlatformIO: use -O2 build optimization
Browse files Browse the repository at this point in the history
Add missing build setting for optimization level. Set to -O2 as in
Makefile.
  • Loading branch information
Jaffe- committed Apr 15, 2024
1 parent 7ef81e8 commit e04274a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ board = ATmega328P
framework = arduino

board_build.f_cpu = 20000000L
build_unflags = -Os
build_flags = -O2

; for potential future use with serial debugging:
; lib_deps = https://github.com/nickgammon/SendOnlySoftwareSerial.git
Expand Down

0 comments on commit e04274a

Please sign in to comment.