Fix for non Pi hardware and virtual Pi's.

Sun, 07 Jul 2019 14:28:37 +0200

author
Chiel Broek <mbse@mbse.eu>
date
Sun, 07 Jul 2019 14:28:37 +0200
changeset 602
ca795b871158
parent 600
af2383e3f110
child 603
fcff55324b84
child 604
e2766e538d0e

Fix for non Pi hardware and virtual Pi's.

thermferm/mqtt.c file | annotate | diff | comparison | revisions
--- a/thermferm/mqtt.c	Sun Jul 07 13:54:24 2019 +0200
+++ b/thermferm/mqtt.c	Sun Jul 07 14:28:37 2019 +0200
@@ -270,7 +270,7 @@
     	else if (strcmp (c, "0018") == 0) { *model = PI_MODEL_AP ; *rev = PI_VERSION_1_1 ; *mem = 0 ; *maker = PI_MAKER_SONY    ; }
     	else if (strcmp (c, "001b") == 0) { *model = PI_MODEL_AP ; *rev = PI_VERSION_1_1 ; *mem = 0 ; *maker = PI_MAKER_EGOMAN  ; }
 
-    	else                              { *model = 0           ; *rev = 0              ; *mem = 0 ; *maker = 0 ;               }
+    	else                              { *model = -1          ; *rev = 0              ; *mem = 0 ; *maker = 0 ;               }
     }
 }
 #endif

mercurial