| 556 | } |
| 557 | |
| 558 | void Compass::stopUsage() |
| 559 | { |
| 560 | -- reference_counter; |
| 561 | #ifdef QT_SENSORS_LIB |
| 562 | if (reference_counter == 0) |
| 563 | { |
| 564 | p->enable(false); |
| 565 | p.reset(); |
| 566 | } |
| 567 | #endif |
| 568 | } |
| 569 | |
| 570 | float Compass::getCurrentAzimuth() |
| 571 | { |
no test coverage detected