File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -966,17 +966,19 @@ async def node_info_update(
966966 await self .save_cache ()
967967
968968 if self ._current_log_address is not None and (
969- self ._current_log_address > node_info .current_logaddress_pointer
970- or self ._current_log_address == 0
969+ # Change note: _curr_log_addr lags behind c_l_a__pointer so must be < instead of >
970+ self ._current_log_address < node_info .current_logaddress_pointer
971+ # Change note: rollover is from 6015 to 0 so must be 6015 instead of 0
972+ or self ._current_log_address == 6015
971973 ):
972- # Rollover of log address
973- _LOGGER .debug (
974- "Rollover log address from %s into %s for node %s" ,
975- self ._current_log_address ,
976- node_info .current_logaddress_pointer ,
977- self ._mac_in_str ,
978- )
979974 if self ._current_log_address != node_info .current_logaddress_pointer :
975+ # Rollover of log address
976+ _LOGGER .debug (
977+ "Rollover log address from %s into %s for node %s" ,
978+ self ._current_log_address ,
979+ node_info .current_logaddress_pointer ,
980+ self ._mac_in_str ,
981+ )
980982 self ._current_log_address = node_info .current_logaddress_pointer
981983 self ._set_cache (
982984 CACHE_CURRENT_LOG_ADDRESS , node_info .current_logaddress_pointer
You can’t perform that action at this time.
0 commit comments