Skip to content

Commit

Permalink
Process Chip name
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Aug 4, 2024
1 parent 179dd7e commit 160a5a2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions indi-gpio/indi_gpio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,16 @@ bool INDIGPIO::ISNewText(const char * dev, const char * name, char * texts[], ch
return true;
if (INDI::OutputInterface::processText(dev, name, texts, names, n))
return true;

// Chip name
if (ChipNameTP.isNameMatch(name))
{
ChipNameTP.update(texts, names, n);
ChipNameTP.setState(IPS_OK);
ChipNameTP.apply();
saveConfig(ChipNameTP);
return true;
}
}

return INDI::DefaultDevice::ISNewText(dev, name, texts, names, n);
Expand Down

0 comments on commit 160a5a2

Please sign in to comment.