firmware: fix plus 16db tx gain

This commit is contained in:
Hoernchen
2013-05-27 15:28:51 +02:00
parent a9c301cfd4
commit 19e8628650

View File

@ -412,7 +412,7 @@ bool max2837_set_txvga_gain(const uint32_t gain_db, const uint32_t plus16) {
if(gain_db > 31)/* 0b111111 mind the bit 6 weigth*/ if(gain_db > 31)/* 0b111111 mind the bit 6 weigth*/
return false; return false;
if(plus16) if(!plus16)
val |= 0x20; /* +16db */ val |= 0x20; /* +16db */
set_MAX2837_TXVGA_GAIN(val); set_MAX2837_TXVGA_GAIN(val);