Skip to content

Commit b0a3c70

Browse files
author
Jarkko Paso
committed
WS/MAC: removed trace causing crash, fixed MAC min BE set
1 parent 3f0e56c commit b0a3c70

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

source/6LoWPAN/ws/ws_neighbor_class.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ uint8_t ws_neighbor_class_rssi_from_dbm_calculate(int8_t dbm_heard)
138138
{
139139
if (DEVICE_MIN_SENS > dbm_heard) {
140140
// We are hearing packet with lower than min_sens dynamically learn the sensitivity
141-
tr_info("heard packet below min sensitivity");
142141
DEVICE_MIN_SENS = dbm_heard;
143142
}
144143
return dbm_heard - DEVICE_MIN_SENS;

source/MAC/IEEE802_15_4/mac_mlme.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ static int8_t mac_mlme_8bit_set(protocol_interface_rf_mac_setup_s *rf_mac_setup,
582582
break;
583583

584584
case macMinBE:
585-
if (value > rf_mac_setup->macMaxBE) {
585+
if (value < rf_mac_setup->macMaxBE) {
586586
rf_mac_setup->macMinBE = value;
587587
}
588588
break;

0 commit comments

Comments
 (0)