... compiled!
This commit is contained in:
@@ -168,7 +168,7 @@ public:
|
||||
SlewModelT(std::move(slew_model)),
|
||||
TrackModelT(std::move(track_model)),
|
||||
LoggerT(std::move(logger)),
|
||||
_mountStatus(new std::atomic<mount_status_t>)
|
||||
_mountStatus(new std::atomic<mount_status_t>{})
|
||||
{
|
||||
*_mountStatus = mount_status_t::IDLE;
|
||||
}
|
||||
@@ -242,7 +242,7 @@ public:
|
||||
|
||||
logInfo(std::format("Set entered target coordinates to: {} {} {}", xstr,
|
||||
MccAngle(_enteredTargetCoordiniates.Y).sexagesimal(),
|
||||
MccCoordPairKindStr<_enteredTargetCoordiniates.pair_kind>));
|
||||
MccCoordPairKindToStr(_enteredTargetCoordiniates.pair_kind)));
|
||||
|
||||
return MccGenericMountErrorCode::ERROR_OK;
|
||||
}
|
||||
@@ -293,7 +293,8 @@ public:
|
||||
|
||||
error_t stopTracking()
|
||||
{
|
||||
*_mountStatus = mount_status_t::IDLE;
|
||||
// *_mountStatus = mount_status_t::IDLE;
|
||||
_mountStatus->store(mount_status_t::IDLE);
|
||||
|
||||
TrackModelT::stopTracking();
|
||||
|
||||
@@ -303,7 +304,7 @@ public:
|
||||
|
||||
MccGenericMount::mount_status_t mountStatus() const
|
||||
{
|
||||
return _mountStatus.get();
|
||||
return *_mountStatus;
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user