Browse Source

send temperature in lora hello messages

Thomas Buck 5 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,7 +295,7 @@ void lora_init(void) {
295 295
     heltec_ve(true);
296 296
 
297 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 299
 #endif // FEATURE_SML
300 300
 }
301 301
 
@@ -437,7 +437,7 @@ void lora_run(void) {
437 437
 #ifdef FEATURE_SML
438 438
         lora_sml_send(LORA_SML_BAT_V, lora_get_mangled_bat(), 0);
439 439
 #else // FEATURE_SML
440
-        lora_tx(LORA_SML_HELLO, -23.42);
440
+        lora_tx(LORA_SML_HELLO, heltec_temperature());
441 441
 #endif // FEATURE_SML
442 442
     }
443 443
 }

Loading…
Cancel
Save