Skip to content

Commit

Permalink
Allow setting ARDUINO_SDK_PATH as environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Pro committed Apr 17, 2018
1 parent baa6bc2 commit 2f06918
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions cmake/ArduinoToolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ endif()
#=============================================================================#
# Detect Arduino SDK #
#=============================================================================#
if(NOT DEFINED ARDUINO_SDK_PATH AND DEFINED ENV{ARDUINO_SDK_PATH})
set(ARDUINO_SDK_PATH $ENV{ARDUINO_SDK_PATH})
endif()

if(NOT ARDUINO_SDK_PATH)
set(ARDUINO_PATHS)

Expand Down
4 changes: 2 additions & 2 deletions cmake/Platform/size_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import subprocess
import re

print(sys.argv)
#print(sys.argv)

def eprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
Expand Down Expand Up @@ -150,4 +150,4 @@ def sizeof_fmt(num, suffix='B'):

if size_eeprom > 0:
eepromSizeStr = "EEPROM size: \t\t{} bytes".format(size_eeprom)
print(eepromSizeStr)
print(eepromSizeStr)

0 comments on commit 2f06918

Please sign in to comment.