Skip to content

Commit

Permalink
disable low rate optimization if not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
dernasherbrezon committed Oct 6, 2024
1 parent de18ca9 commit c94ba72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sx127x.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,9 @@ int sx127x_reload_low_datarate_optimization(sx127x *device) {
if (symbol_duration > 16) {
// force low data rate optimization
return sx127x_lora_set_low_datarate_optimization(true, device);
} else {
return sx127x_lora_set_low_datarate_optimization(false, device);
}
return SX127X_OK;
}

int sx127x_fsk_ook_read_fixed_packet_length(sx127x *device, uint16_t *packet_length) {
Expand Down

0 comments on commit c94ba72

Please sign in to comment.