Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ADXL345_nRF51 BLE_API advertiser_data mbed nRF51822
Fork of BLE_GAP_Acceleration_Trial by
Revision 19:5b952d4f1024, committed 2015-07-30
- Comitter:
- mchan
- Date:
- Thu Jul 30 16:40:03 2015 +0000
- Parent:
- 18:bb0566d76c27
- Commit message:
- correlation test
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Jul 29 22:42:50 2015 +0000 +++ b/main.cpp Thu Jul 30 16:40:03 2015 +0000 @@ -29,6 +29,7 @@ static advertiser_data advertisers[MAX_ADVERTISERS]; static uint8_t advertiser_index[MAX_ADVERTISERS]; static uint8_t advertiser_count = 0; +static uint8_t currently_picked_up = 0; uint8_t get_index(uint8_t address) { @@ -123,7 +124,15 @@ advertiser_data_update(pdata, manData, manDataLen); // TODO: implement the rest of the algorithms - advertiser_data_print(pdata,params->peerAddr[2]); + //advertiser_data_print(pdata,params->peerAddr[2]); + + if(pdata->picked_up){ + uint8_t temp = params->peerAddr[2]; + if(currently_picked_up!=temp){ + currently_picked_up = temp; + pc.printf("CURRENTLY PICKING UP DEVICE %i\n\r",currently_picked_up); + } + } } }