Skip to content

Commit

Permalink
fix: add password send on prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
mhengeli committed Aug 15, 2024
1 parent 050be16 commit b587f82
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ExtronQuantumDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,12 @@ private void ProcessFeedbackMessage(string message)
Debug.Console(2, this, $"Message received: {message}");

if (message.IndexOf("login administrator", StringComparison.OrdinalIgnoreCase) >= 0)
{
SendText(_adminPassword);
return;
}

if (message.IndexOf("password:", StringComparison.OrdinalIgnoreCase) >= 0)
{
SendText(_adminPassword);
return;
Expand Down

0 comments on commit b587f82

Please sign in to comment.