Skip to content

Commit

Permalink
Add missing permission check
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Jan 30, 2024
1 parent 9bbf00e commit e960686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/indibase/connectionplugins/connectionserial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ bool Serial::processHandshake()
if (rc)
{
LOGF_INFO("%s is online.", getDeviceName());
if (std::string(PortT[0].text) != m_ConfigPort || IUFindOnSwitchIndex(&BaudRateSP) != m_ConfigBaudRate)
if (m_Permission != IP_RO && (std::string(PortT[0].text) != m_ConfigPort || IUFindOnSwitchIndex(&BaudRateSP) != m_ConfigBaudRate))
{
m_Device->saveConfig(true, INDI::SP::DEVICE_PORT);
m_Device->saveConfig(true, INDI::SP::DEVICE_BAUD_RATE);
Expand Down

0 comments on commit e960686

Please sign in to comment.