File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 4141#define LOW_PRIORITY_SEARCH_TIMEOUT_LENGTH 0x02
4242#define OPEN_CHANNEL_LENGTH 0x01
4343#define OPEN_RX_SCAN_MODE_LENGTH 0x01
44+ #define PROXIMITY_SEARCH_LENGTH 0x02
4445#define REQUEST_MESSAGE_LENGTH 0x02
4546#define RESET_SYSTEM_LENGTH 0x01
4647#define SEARCH_TIMEOUT_LENGTH 0x02
Original file line number Diff line number Diff line change @@ -32,13 +32,15 @@ uint8_t ProximitySearch::getSearchThreshold() {
3232}
3333
3434uint8_t ProximitySearch::getData (uint8_t pos) {
35- // TODO
36- return 0 ;
35+ if (pos == 0 ) {
36+ return _channel;
37+ } else {
38+ return _searchThreshold;
39+ }
3740}
3841
3942uint8_t ProximitySearch::getDataLength () {
40- // TODO
41- return 0 ;
43+ return PROXIMITY_SEARCH_LENGTH;
4244}
4345
4446#ifdef NATIVE_API_AVAILABLE
You can’t perform that action at this time.
0 commit comments