microsoft / pxt-brainpad

Microsoft MakeCode editor for the GHI Brainpad
https://makecode.brainpad.com/
Other
3 stars 11 forks source link

Warnings #109

Closed pelikhan closed 6 years ago

pelikhan commented 6 years ago

Why are we redefining those constants in platform.h ?

rebuilding dal.d.ts...
built\codal\libraries\codal-core\inc\drivers\AnalogSensor.h(37): #define conflict, ANALOG_THRESHOLD_LOW
built\codal\libraries\codal-core\inc\drivers\AnalogSensor.h(38): #define conflict, ANALOG_THRESHOLD_HIGH
built\codal\pxtapp\accelerometer\axis.h(3): #define conflict, ACC_SYSTEM
built\codal\pxtapp\platform.h(35): #define conflict, ACC_SYSTEM
built\codal\pxtapp\platform.h(53): #define conflict, ANALOG_THRESHOLD_LOW
built\codal\pxtapp\platform.h(54): #define conflict, ANALOG_THRESHOLD_HIGH

To repro: run "pxt builddaldts" under /libs/blocksprj

pelikhan commented 6 years ago

Fixes in https://github.com/Microsoft/pxt-brainpad/pull/108