Removes custom CONFIG_ATHENA compiler directive (#796)

In roborio GCC 5.5, __FRC_ROBORIO__ has been added directly to the
compiler. So we can instead use that to detect if we are build for the
roborio, and in a much more reliable way.
This commit is contained in:
Thad House
2017-12-08 21:40:11 -08:00
committed by Peter Johnson
parent 942ba51765
commit 8106fbdbea
9 changed files with 4 additions and 22 deletions

View File

@@ -77,7 +77,7 @@ static inline int16_t getHandleTypedIndex(HAL_Handle handle,
HAL_HandleEnum enumType,
int16_t version) {
if (!isHandleType(handle, enumType)) return InvalidHandleIndex;
#if !defined(CONFIG_ATHENA)
#if !defined(__FRC_ROBORIO__)
if (!isHandleCorrectVersion(handle, version)) return InvalidHandleIndex;
#endif
return getHandleIndex(handle);