Browse Source

send temperature in lora hello messages

Thomas Buck 3 months ago
parent
commit
66fa51227e
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/lora.cpp

+ 2
- 2
src/lora.cpp View File

295
     heltec_ve(true);
295
     heltec_ve(true);
296
 
296
 
297
     // send hello msg after boot
297
     // send hello msg after boot
298
-    lora_sml_send(LORA_SML_HELLO, -42.23, 0);
298
+    lora_sml_send(LORA_SML_HELLO, heltec_temperature(), 0);
299
 #endif // FEATURE_SML
299
 #endif // FEATURE_SML
300
 }
300
 }
301
 
301
 
437
 #ifdef FEATURE_SML
437
 #ifdef FEATURE_SML
438
         lora_sml_send(LORA_SML_BAT_V, lora_get_mangled_bat(), 0);
438
         lora_sml_send(LORA_SML_BAT_V, lora_get_mangled_bat(), 0);
439
 #else // FEATURE_SML
439
 #else // FEATURE_SML
440
-        lora_tx(LORA_SML_HELLO, -23.42);
440
+        lora_tx(LORA_SML_HELLO, heltec_temperature());
441
 #endif // FEATURE_SML
441
 #endif // FEATURE_SML
442
     }
442
     }
443
 }
443
 }

Loading…
Cancel
Save