Skip to content

Commit

Permalink
at86rf2xx: different types have RSSI base values
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegHahm committed Jan 18, 2017
1 parent 7c04f05 commit c04c5cb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion drivers/include/at86rf2xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,17 @@ extern "C" {
/**
* @brief Base (minimal) RSSI value in dBm
*/
#define RSSI_BASE_VAL (-91)
#if MODULE_AT86RF233
# define RSSI_BASE_VAL (-94)
#elif MODULE_AT86RF212B
/**
* @note for the default settings in RIOT for the at86rf212b,
* for other seetings this value may change.
*/
# define RSSI_BASE_VAL (-98)
#else
# define RSSI_BASE_VAL (-91)
#endif

/**
* @brief Flags for device internal states (see datasheet)
Expand Down

0 comments on commit c04c5cb

Please sign in to comment.