浏览代码

send temperature in lora hello messages

Thomas Buck 10 个月前
父节点
当前提交
66fa51227e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/lora.cpp

+ 2
- 2
src/lora.cpp 查看文件

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
 }

正在加载...
取消
保存