Skip to content

Commit

Permalink
Set focuser default baud rate to 115200
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed May 18, 2024
1 parent c473130 commit 8ae038e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/focuser/ieaffocus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <unistd.h>
#include <math.h>
#include <memory>
#include <connectionplugins/connectionserial.h>

#define iEAFFOCUS_TIMEOUT 4
#define TEMPERATURE_THRESHOLD 0.1
Expand Down Expand Up @@ -59,6 +60,7 @@ bool iEAFFocus::initProperties()
INDI::Focuser::initProperties();

setDefaultPollingPeriod(1500);
serialConnection->setDefaultBaudRate(Connection::Serial::B_115200);

TemperatureNP[0].fill("TEMPERATURE", "Celsius", "%2.2f", 0., 50., 0., 50.);
TemperatureNP.fill(getDeviceName(), "FOCUS_TEMPERATURE", "Temperature", MAIN_CONTROL_TAB, IP_RO, 0, IPS_IDLE);
Expand Down

0 comments on commit 8ae038e

Please sign in to comment.