Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix MSP VTX lp mode #151

Merged
merged 1 commit into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ void MonEE(uint8_t op, uint8_t d) {
}

val = I2C_Read8_Wait(10, ADDR_EEPROM, addr);
table_power[0][RF_FREQ][RF_POWER] = val;
table_power[RF_FREQ][RF_POWER] = val;
debugf("\r\nRF TAB[%d][%d] = %x", (uint16_t)RF_FREQ, (uint16_t)RF_POWER, val);

DM6300_SetPower(RF_POWER, RF_FREQ, pwr_offset);
Expand Down
8 changes: 4 additions & 4 deletions src/msp_displayport.c
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ void parseMspVtx_V2(uint16_t const cmd_u16) {
}

if (needSaveEEP)
Setting_Save();
; // Setting_Save();

#ifdef _DEBUG_MODE
debugf("\r\nparseMspVtx_V2 pwr:%x, pit:%x", (uint16_t)nxt_pwr, (uint16_t)fc_pit_rx);
Expand Down Expand Up @@ -1898,14 +1898,14 @@ void set_vtx_param() {

first_arm = 1;
PIT_MODE = PIT_OFF;
Setting_Save();
I2C_Write8_Wait(10, ADDR_EEPROM, EEP_ADDR_PITMODE, PIT_MODE);
if (!TEAM_RACE)
msp_set_vtx_config(RF_POWER, 1);
; // msp_set_vtx_config(RF_POWER, 1);
} else if (!g_IS_ARMED && g_IS_ARMED_last) {
if (LP_MODE == 1) {
DM6300_SetPower(0, RF_FREQ, 0); // limit power to 25mW during disarmed
cur_pwr = 0;
#ifdef _DEBUG_MDOE
#ifdef _DEBUG_MODE
debugf("\n\rEnter LP_MODE");
#endif
}
Expand Down