Skip to content

Commit

Permalink
Use std::string
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Jul 29, 2024
1 parent 0b69267 commit 7fc254d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/indibase/inditelescope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ bool Telescope::ISNewSwitch(const char *dev, const char *name, ISState *states,
///////////////////////////////////
if (HomeSP.isNameMatch(name))
{
auto onSwitchName = IUFindOnSwitchName(states, names, n);
auto onSwitchName = std::string(IUFindOnSwitchName(states, names, n));
auto action = HOME_FIND;
if (onSwitchName == "SET")
action = HOME_SET;
Expand Down

0 comments on commit 7fc254d

Please sign in to comment.