Skip to content

Commit

Permalink
Fix static ip whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
gemi254 committed Jul 31, 2023
1 parent b6407ae commit c7dcbe9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/network.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ bool setStaticIP(String st_ip){
if(st_ip.length() <= 0) return false;

IPAddress ip, mask, gw;

st_ip.replace(" "," ");
st_ip.replace(" "," ");
int ndx = st_ip.indexOf(' ');
String s = st_ip.substring(0, ndx);
s.trim();
Expand Down

0 comments on commit c7dcbe9

Please sign in to comment.