Guard nordic specific implementation with #ifdef TARGET_NRF51822
This commit is contained in:
parent
61b7433903
commit
f2a0a2f09e
|
@ -14,6 +14,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef TARGET_NRF51822 /* DFU only supported on nrf51 platforms */
|
||||||
|
|
||||||
#ifndef __BLE_DFU_SERVICE_H__
|
#ifndef __BLE_DFU_SERVICE_H__
|
||||||
#define __BLE_DFU_SERVICE_H__
|
#define __BLE_DFU_SERVICE_H__
|
||||||
|
|
||||||
|
@ -141,3 +143,4 @@ protected:
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* #ifndef __BLE_DFU_SERVICE_H__*/
|
#endif /* #ifndef __BLE_DFU_SERVICE_H__*/
|
||||||
|
#endif /* #ifdef TARGET_NRF51822 */
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef TARGET_NRF51822 /* DFU only supported on nrf51 platforms */
|
||||||
|
|
||||||
#include "ble/services/DFUService.h"
|
#include "ble/services/DFUService.h"
|
||||||
|
|
||||||
const uint8_t DFUServiceBaseUUID[] = {
|
const uint8_t DFUServiceBaseUUID[] = {
|
||||||
|
@ -38,3 +40,5 @@ const uint8_t DFUServicePacketCharacteristicUUID[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
DFUService::ResetPrepare_t DFUService::handoverCallback = NULL;
|
DFUService::ResetPrepare_t DFUService::handoverCallback = NULL;
|
||||||
|
|
||||||
|
#endif /* #ifdef TARGET_NRF51822 */
|
||||||
|
|
Loading…
Reference in New Issue