Refactor PLATFORM and FRAMEWORK build variables with PIO prefix

This commit is contained in:
Ivan Kravets
2016-07-17 16:05:28 +03:00
parent daac1b2590
commit 8eed54ca45
9 changed files with 18 additions and 11 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ def DumpIDEData(env):
defines.append(env_.subst(item).replace('\\"', '"'))
# special symbol for Atmel AVR MCU
if env.subst("$PLATFORM") == "atmelavr":
if env['PIOPLATFORM'] == "atmelavr":
defines.append(
"__AVR_%s__" % env.BoardConfig().get("build.mcu").upper()
.replace("ATMEGA", "ATmega")