This commit is contained in:
50
radio.c
50
radio.c
@@ -488,58 +488,10 @@ void RADIO_ConfigureSquelchAndOutputPower(VFO_Info_t *pInfo) {
|
||||
} else if (currentPower == OUTPUT_POWER_HIGH) {
|
||||
Op = 2; // High eeprom calibration data
|
||||
}
|
||||
currentPower--;
|
||||
|
||||
EEPROM_ReadBuffer(0x1ED0 + (Band * 20) + (Op * 3), Txp, 3);
|
||||
EEPROM_ReadBuffer(0x1ED0 + (Band * 16) + (Op * 3), Txp, 3);
|
||||
|
||||
#ifdef ENABLE_FEAT_F4HWN
|
||||
// make low and mid even lower
|
||||
// and use calibration values
|
||||
// be aware with toxic fucking closed firmwares
|
||||
|
||||
/*
|
||||
uint8_t shift[] = {0, 0, 0, 0, 0};
|
||||
|
||||
if(Band == 5) // UHF
|
||||
{
|
||||
shift[0] = 0;
|
||||
shift[1] = 0;
|
||||
shift[2] = 0;
|
||||
shift[3] = 0;
|
||||
shift[4] = 0;
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
for(uint8_t p = 0; p < 3; p++)
|
||||
{
|
||||
switch (currentPower)
|
||||
{
|
||||
case 0:
|
||||
Txp[p] = (Txp[p] * 4) / 25; //+ shift[pInfo->OUTPUT_POWER];
|
||||
break;
|
||||
case 1:
|
||||
Txp[p] = (Txp[p] * 4) / 19; // + shift[pInfo->OUTPUT_POWER];
|
||||
break;
|
||||
case 2:
|
||||
Txp[p] = (Txp[p] * 4) / 13; // + shift[pInfo->OUTPUT_POWER];
|
||||
break;
|
||||
case 3:
|
||||
Txp[p] = (Txp[p] * 4) / 10; // + shift[pInfo->OUTPUT_POWER];
|
||||
break;
|
||||
case 4:
|
||||
Txp[p] = (Txp[p] * 4) / 7; // + shift[pInfo->OUTPUT_POWER];
|
||||
break;
|
||||
case 5:
|
||||
Txp[p] = (Txp[p] * 3) / 4;
|
||||
break;
|
||||
case 6:
|
||||
Txp[p] = Txp[p] + 30;
|
||||
break;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
static const uint8_t dividers[6] = {25, 19, 13, 10, 7, 4};
|
||||
|
||||
for (uint8_t p = 0; p < 3; p++) {
|
||||
|
Reference in New Issue
Block a user