thermferm/server.c

changeset 156
5fb74d89f571
parent 155
0d86f3c0a07b
child 157
259a018758f9
--- a/thermferm/server.c	Wed Jul 30 22:57:48 2014 +0200
+++ b/thermferm/server.c	Wed Jul 30 23:06:46 2014 +0200
@@ -1023,7 +1023,8 @@
 	    } else if (strncmp(buf, "LIST", 4) == 0) {
 		cmd_list(buf);
 	    } else if (strncmp(buf, "MODE", 4) == 0) {
-		cmd_mode(buf);
+		if (cmd_mode(buf) == 0)
+		    wrconfig();
 	    } else if (strncmp(buf, "PROFILE", 7) == 0) {
 		if (cmd_profile(buf) == 0)
 		    wrconfig();

mercurial