diff --git a/ble/services/DFUService.h b/ble/services/DFUService.h index 4dbec30..0f29b62 100644 --- a/ble/services/DFUService.h +++ b/ble/services/DFUService.h @@ -17,6 +17,8 @@ #ifndef __BLE_DFU_SERVICE_H__ #define __BLE_DFU_SERVICE_H__ +#ifdef TARGET_NRF51822 /* DFU only supported on nrf51 platforms */ + #include "ble/BLE.h" #include "ble/UUID.h" @@ -140,4 +142,5 @@ protected: static ResetPrepare_t handoverCallback; /**< application specific handover callback. */ }; +#endif /* #ifdef TARGET_NRF51822 */ #endif /* #ifndef __BLE_DFU_SERVICE_H__*/ diff --git a/source/services/DFUService.cpp b/source/services/DFUService.cpp index a72e559..b10e24c 100644 --- a/source/services/DFUService.cpp +++ b/source/services/DFUService.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ +#ifdef TARGET_NRF51822 /* DFU only supported on nrf51 platforms */ + #include "ble/services/DFUService.h" const uint8_t DFUServiceBaseUUID[] = { @@ -38,3 +40,5 @@ const uint8_t DFUServicePacketCharacteristicUUID[] = { }; DFUService::ResetPrepare_t DFUService::handoverCallback = NULL; + +#endif /* #ifdef TARGET_NRF51822 */