Skip to content

Commit

Permalink
Changing ipOutput to contains instead of direct match
Browse files Browse the repository at this point in the history
  • Loading branch information
erinharrington-12 committed Jan 25, 2024
1 parent a28af04 commit b35fc91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Create3Widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void Create3Widget::toggleChanged()
qDebug() << "IP OUTPUT: " << ipOutput; // Get current IP output


if (ipOutput == "192.168.125.1")
if (ipOutput.contains("192.168.125.1"))
{

if (QMessageBox::question(this, "Change Interface?",
Expand All @@ -106,7 +106,7 @@ void Create3Widget::toggleChanged()


}
else if (ipOutput == "192.168.186.3")
else if (ipOutput.contains("192.168.186.3"))
{
if (QMessageBox::question(this, "Change Interface?",
QString("You are about to change your Create 3 connection from Ethernet to Wifi. \n The Wombat will reboot once you make this change. \nDo you want to continue? \n (Be sure to change the Fast DDS discovery server IP address to 192.168.125.1)"),
Expand Down

0 comments on commit b35fc91

Please sign in to comment.