MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / stopUsage

Method stopUsage

src/sensors/compass.cpp:558–568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556}
557
558void 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
570float Compass::getCurrentAzimuth()
571{

Callers 2

alignMapWithNorthMethod · 0.80

Calls 2

enableMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected