Explorar o código

* fix: init rx_air_time to 0

Scott Powell hai 1 ano
pai
achega
febc63d286
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/Dispatcher.h

+ 3 - 1
src/Dispatcher.h

@@ -134,7 +134,9 @@ protected:
   Dispatcher(Radio& radio, MillisecondClock& ms, PacketManager& mgr)
     : _radio(&radio), _ms(&ms), _mgr(&mgr)
   {
-    outbound = NULL; total_air_time = 0; next_tx_time = 0;
+    outbound = NULL;
+    total_air_time = rx_air_time = 0;
+    next_tx_time = 0;
     cad_busy_start = 0;
     next_floor_calib_time = next_agc_reset_time = 0;
     _err_flags = 0;