From 9c1a1d54f8d9d28f1e1dfbfb789259f25220f1ed Mon Sep 17 00:00:00 2001 From: Brian Schmalz Date: Sat, 10 Oct 2015 09:46:37 -0500 Subject: [PATCH] Fix for issue #615: Add define to allow sketches/library to know what IDE they're compiled under. --- hardware/pic32/platform.txt | 2 +- hardware/pic32/platforms.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/pic32/platform.txt b/hardware/pic32/platform.txt index ceef731d5..37d814239 100644 --- a/hardware/pic32/platform.txt +++ b/hardware/pic32/platform.txt @@ -31,7 +31,7 @@ library.core.path=./hardware/pic32/cores/pic32 library.path=./hardware/pic32/libraries ldscript=chipKIT-BL-mega.ld ldcommon=chipKIT-application-COMMON.ld -compiler.define= -DMPIDEVER=16777998 -DMPIDE=150 +compiler.define= -DMPIDEVER=16777998 -DMPIDE=150 -DIDE=Arduino build.variant=Default_100 build.extra_flags= core.header=WProgram.h diff --git a/hardware/pic32/platforms.txt b/hardware/pic32/platforms.txt index e556f2de9..88d2762a8 100644 --- a/hardware/pic32/platforms.txt +++ b/hardware/pic32/platforms.txt @@ -41,6 +41,6 @@ pic32.library.core.path=./hardware/pic32/cores/pic32 pic32.library.path=./hardware/pic32/libraries pic32.ldscript=chipKIT-BL-mega.ld pic32.ldcommon=chipKIT-application-COMMON.ld -pic32.compiler.define=::-DMPIDEVER=16778024::-DMPIDE=150:: +pic32.compiler.define=::-DMPIDEVER=16778024::-DMPIDE=150::-DIDE=MPIDE:: pic32.build.variant=Default_100 pic32.core.header=WProgram.h