| 521 | } |
| 522 | |
| 523 | owb_status owb_search_next(const OneWireBus * bus, OneWireBus_SearchState * state, bool* found_device) |
| 524 | { |
| 525 | owb_status status; |
| 526 | bool result = false; |
| 527 | |
| 528 | if(!bus || !state || !found_device) |
| 529 | { |
| 530 | status = OWB_STATUS_PARAMETER_NULL; |
| 531 | } else if (!_is_init(bus)) |
| 532 | { |
| 533 | status = OWB_STATUS_NOT_INITIALIZED; |
| 534 | } else |
| 535 | { |
| 536 | _search(bus, state, &result); |
| 537 | status = OWB_STATUS_OK; |
| 538 | |
| 539 | *found_device = result; |
| 540 | } |
| 541 | |
| 542 | return status; |
| 543 | } |
no test coverage detected