File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 41
41
42
42
#include "packet_queue.h"
43
43
#include "MODULE_D7AP_defs.h"
44
+ #include "d7ap_fs.h"
44
45
45
46
#if defined(FRAMEWORK_LOG_ENABLED ) && defined(MODULE_D7AP_PHY_LOG_ENABLED )
46
47
#define DPRINT (...) log_print_stack_string(LOG_STACK_PHY, __VA_ARGS__)
@@ -360,7 +361,10 @@ uint16_t phy_calculate_tx_duration(phy_channel_class_t channel_class, phy_coding
360
361
361
362
static void configure_eirp (eirp_t eirp )
362
363
{
363
- DPRINT ("Set Tx power: %d dBm\n" , eirp );
364
+ int8_t factory_settings [D7A_FILE_FACTORY_SETTINGS_SIZE ]; //Byte 0 is gain offset
365
+ d7ap_fs_read_file (D7A_FILE_FACTORY_SETTINGS_FILE_ID , 0 , factory_settings , D7A_FILE_FACTORY_SETTINGS_SIZE );
366
+ eirp -= factory_settings [0 ];
367
+ DPRINT ("Set Tx power: %d dBm including offset of %i\n" , eirp , factory_settings [0 ]);
364
368
365
369
hw_radio_set_tx_power (eirp );
366
370
}
You can’t perform that action at this time.
0 commit comments