coap_debug.c: reset all globals in coap_debug_reset

This commit is contained in:
Kamil Panek authored and Jon Shallow committed 2023-11-03 13:32:52 +00:00
1 parent b2c3ca3b89
commit ecc55544d6
1 file changed
+2
+2
View File
@@ -1327,8 +1327,10 @@ coap_debug_send_packet(void) {
void
coap_debug_reset(void) {
log_handler = NULL;
maxlog = COAP_LOG_WARN;
use_fprintf_for_show_pdu = 1;
memset(&packet_loss_intervals, 0, sizeof(packet_loss_intervals));
num_packet_loss_intervals = 0;
packet_loss_level = 0;
send_packet_count = 0;