Skip to content

Commit

Permalink
Merge pull request #119 from LiyouZhou/guard_dfu_files
Browse files Browse the repository at this point in the history
Guard nordic specific implementation with #ifdef TARGET_NRF51822
  • Loading branch information
rgrover committed Nov 26, 2015
2 parents aad3476 + ce62be1 commit f8ab6da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ble/services/DFUService.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#ifdef TARGET_NRF51822 /* DFU only supported on nrf51 platforms */

#ifndef __BLE_DFU_SERVICE_H__
#define __BLE_DFU_SERVICE_H__

Expand Down Expand Up @@ -141,3 +143,4 @@ class DFUService {
};

#endif /* #ifndef __BLE_DFU_SERVICE_H__*/
#endif /* #ifdef TARGET_NRF51822 */
4 changes: 4 additions & 0 deletions source/services/DFUService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = {
Expand All @@ -38,3 +40,5 @@ const uint8_t DFUServicePacketCharacteristicUUID[] = {
};

DFUService::ResetPrepare_t DFUService::handoverCallback = NULL;

#endif /* #ifdef TARGET_NRF51822 */

0 comments on commit f8ab6da

Please sign in to comment.