...
This commit is contained in:
@@ -143,7 +143,7 @@ public:
|
||||
typename ASTROM_ENGINE_T::coord_t xdiff, ydiff, r2;
|
||||
};
|
||||
|
||||
MccMountTelemetry(astrom_engine_t& astrom_engine, pec_t& pec, hardware_t& hardware)
|
||||
MccMountTelemetry(astrom_engine_t* astrom_engine, pec_t* pec, hardware_t* hardware)
|
||||
: base_t(astrom_engine, pec), _hardware(hardware)
|
||||
{
|
||||
}
|
||||
@@ -221,7 +221,7 @@ public:
|
||||
|
||||
typename hardware_t::axes_pos_t ax_pos;
|
||||
|
||||
auto err = _hardware.getPos(ax_pos);
|
||||
auto err = _hardware->getPos(ax_pos);
|
||||
if (err) {
|
||||
if constexpr (std::same_as<error_t, decltype(err)>) {
|
||||
return err;
|
||||
@@ -357,7 +357,7 @@ public:
|
||||
|
||||
protected:
|
||||
mount_telemetry_data_t _data{};
|
||||
hardware_t& _hardware;
|
||||
hardware_t* _hardware;
|
||||
|
||||
std::unique_ptr<std::mutex> _updateMutex;
|
||||
std::unique_ptr<std::condition_variable> _updateCondVar;
|
||||
|
||||
Reference in New Issue
Block a user