Skip to content

Commit

Permalink
Fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Jul 26, 2024
1 parent 34867c9 commit 572f76c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion drivers/auxiliary/waveshare_modbus_relay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ bool WaveshareRelay::UpdateDigitalOutputs()
////////////////////////////////////////////////////////////////////////////////////////////////////////
///
////////////////////////////////////////////////////////////////////////////////////////////////////////
bool WaveshareRelay::CommandOutput(uint32_t index, Status command)
bool WaveshareRelay::CommandOutput(uint32_t index, OutputState command)
{
uint16_t value = (command == On) ? 0xFF00 : 0;

Expand Down
2 changes: 1 addition & 1 deletion drivers/auxiliary/waveshare_modbus_relay.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class WaveshareRelay : public INDI::DefaultDevice, public INDI::OutputInterface
* \brief Send command to relay
* \return True if operation is successful, false otherwise
*/
virtual bool CommandOutput(uint32_t index, Status command) override;
virtual bool CommandOutput(uint32_t index, OutputState command) override;

virtual void TimerHit() override;
virtual bool saveConfigItems(FILE *fp) override;
Expand Down
3 changes: 1 addition & 2 deletions libs/indibase/indiinputinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ class InputInterface
{
Off, /*!< Input is off. */
On, /*!< Input is on. */
Unknown /*!< Could not determined input status. */
} Status;
} InputState;

/**
* \brief Update all digital inputs
Expand Down
2 changes: 1 addition & 1 deletion libs/indibase/indioutputinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ bool OutputInterface::processSwitch(const char *dev, const char *name, ISState s
if (oldState != newState)
{
// Cast to Command and send
if (CommandOutput(i, static_cast<Status>(newState)))
if (CommandOutput(i, static_cast<OutputState>(newState)))
{
DigitalOutputsSP[i].setState(IPS_OK);
}
Expand Down
4 changes: 2 additions & 2 deletions libs/indibase/indioutputinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class OutputInterface
{
Off, /*!< Output is off. For Relays, it is open circuit. */
On, /*!< Output is on. For Relays, it is closed circuit. */
} Status;
} OutputState;

/**
* \brief Update all digital outputs
Expand All @@ -66,7 +66,7 @@ class OutputInterface
* \brief Send command to output
* \return True if operation is successful, false otherwise
*/
virtual bool CommandOutput(uint32_t index, Status command) = 0;
virtual bool CommandOutput(uint32_t index, OutputState command) = 0;

protected:
/**
Expand Down

0 comments on commit 572f76c

Please sign in to comment.