Skip to content

Commit dcc3eb5

Browse files
committed
Fix MacOS error
1 parent 1ea57be commit dcc3eb5

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

libs/indibase/indipowerinterface.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ bool PowerInterface::processNumber(const char *dev, const char *name, double val
420420
// Over Voltage Protection
421421
if (OverVoltageProtectionNP.isNameMatch(name))
422422
{
423-
return m_defaultDevice->updateProperty(OverVoltageProtectionNP, values, names, n, [this]()
423+
return m_defaultDevice->updateProperty(OverVoltageProtectionNP, values, names, n, []()
424424
{
425425
return true;
426426
}, true);
@@ -501,7 +501,7 @@ bool PowerInterface::processSwitch(const char *dev, const char *name, ISState *s
501501
// Power Off on Disconnect
502502
if (PowerOffOnDisconnectSP.isNameMatch(name))
503503
{
504-
return m_defaultDevice->updateProperty(PowerOffOnDisconnectSP, states, names, n, [this]()
504+
return m_defaultDevice->updateProperty(PowerOffOnDisconnectSP, states, names, n, []()
505505
{
506506
return true;
507507
}, true);
@@ -647,7 +647,7 @@ bool PowerInterface::processText(const char *dev, const char *name, char *texts[
647647
// Power Channel Labels
648648
if (PowerChannelLabelsTP.isNameMatch(name))
649649
{
650-
return m_defaultDevice->updateProperty(PowerChannelLabelsTP, texts, names, n, [this]()
650+
return m_defaultDevice->updateProperty(PowerChannelLabelsTP, texts, names, n, []()
651651
{
652652
return true;
653653
}, true);
@@ -656,7 +656,7 @@ bool PowerInterface::processText(const char *dev, const char *name, char *texts[
656656
// DEW Channel Labels
657657
if (DewChannelLabelsTP.isNameMatch(name))
658658
{
659-
return m_defaultDevice->updateProperty(DewChannelLabelsTP, texts, names, n, [this]()
659+
return m_defaultDevice->updateProperty(DewChannelLabelsTP, texts, names, n, []()
660660
{
661661
return true;
662662
}, true);
@@ -665,7 +665,7 @@ bool PowerInterface::processText(const char *dev, const char *name, char *texts[
665665
// Variable Channel Labels
666666
if (VariableChannelLabelsTP.isNameMatch(name))
667667
{
668-
return m_defaultDevice->updateProperty(VariableChannelLabelsTP, texts, names, n, [this]()
668+
return m_defaultDevice->updateProperty(VariableChannelLabelsTP, texts, names, n, []()
669669
{
670670
return true;
671671
}, true);
@@ -674,7 +674,7 @@ bool PowerInterface::processText(const char *dev, const char *name, char *texts[
674674
// USB Port Labels
675675
if (HasUSBPort() && USBPortLabelsTP.isNameMatch(name))
676676
{
677-
return m_defaultDevice->updateProperty(USBPortLabelsTP, texts, names, n, [this]()
677+
return m_defaultDevice->updateProperty(USBPortLabelsTP, texts, names, n, []()
678678
{
679679
return true;
680680
}, true);

0 commit comments

Comments
 (0)