From ec34b8640c6afdab5440448a1e18cd538c749b22 Mon Sep 17 00:00:00 2001 From: Harald Pichler Date: Tue, 23 Aug 2016 20:51:21 +0200 Subject: [PATCH] bugfix dallas remove first space --- examples/osd/arduino-climate3/sketch.pde | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/osd/arduino-climate3/sketch.pde b/examples/osd/arduino-climate3/sketch.pde index 9f9cb22d7..3e729d277 100644 --- a/examples/osd/arduino-climate3/sketch.pde +++ b/examples/osd/arduino-climate3/sketch.pde @@ -120,7 +120,7 @@ void setup (void) rest_init_engine (); rest_activate_resource (&res_htu21dtemp, "s/temp"); rest_activate_resource (&res_htu21dhum, "s/hum"); - rest_activate_resource (&res_dtemp1, "s/t1/temp"); + rest_activate_resource (&res_dtemp1, "s/tempd"); rest_activate_resource (&res_battery, "s/battery"); } @@ -149,6 +149,9 @@ void loop (void) if(htu21d_hum_s[0]==' '){ memcpy (htu21d_hum_s,htu21d_hum_s+1,strlen(htu21d_hum_s)+1); } + if(d_temp_s[0]==' '){ + memcpy (d_temp_s,d_temp_s+1,strlen(d_temp_s)+1); + } // debug only printf("Temp: %s",htu21d_temp_s);