| 38 | } |
| 39 | |
| 40 | modBLEConnection modBLEConnectionFindByAddress(uint8_t *address) |
| 41 | { |
| 42 | modBLEConnection walker; |
| 43 | modCriticalSectionDeclare; |
| 44 | modCriticalSectionBegin(); |
| 45 | for (walker = gConnections; NULL != walker; walker = walker->next) { |
| 46 | if (0 == c_memcmp(address, walker->address, 6)) |
| 47 | goto bail; |
| 48 | } |
| 49 | bail: |
| 50 | modCriticalSectionEnd(); |
| 51 | return walker; |
| 52 | } |
| 53 | |
| 54 | modBLEConnection modBLEConnectionFindByAddressAndType(uint8_t *address, uint8_t addressType) |
| 55 | { |
no outgoing calls
no test coverage detected