Skip to content

Commit

Permalink
Driver for WandererBox Pro V3 updated
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererAstro committed Feb 17, 2024
1 parent ab9d988 commit 033d6b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions drivers/auxiliary/wandererbox_pro_v3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,11 @@ bool WandererBoxProV3::getData()
throw std::exception();
// Frimware version/////////////////////////////////////////////////////////////////////////////////////////////
int nbytes_read_version = 0;
version[64] = {0};
char version[64] = {0};
tty_read_section(PortFD, version, 'A', 5, &nbytes_read_version);

version[nbytes_read_version - 1] = '\0';

firmware=std::atoi(version);


// Temp probe 1//////////////////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -697,10 +697,10 @@ bool WandererBoxProV3::updateProperties()
if (isConnected())
{

if(std::stoi(version)>=20240216)
if(firmware>=20240216)
{
defineProperty(CalibrateSP);
LOGF_INFO("Firmware version: %s", version);
LOGF_INFO("Firmware version: %d", firmware);
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion drivers/auxiliary/wandererbox_pro_v3.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class WandererBoxProV3 : public INDI::DefaultDevice

private:

char version[64] = {0};
int firmware=0;
bool sendCommand(std::string command);
bool DC5DIFFMODE=false;
bool DC5CONSTMODE=false;
Expand Down

0 comments on commit 033d6b4

Please sign in to comment.