Skip to content

Commit

Permalink
Added a "phase/balance correction" Reset button.
Browse files Browse the repository at this point in the history
  • Loading branch information
bubnikv committed Dec 30, 2017
1 parent 73e79f3 commit 52e92b7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ConfigDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,16 @@ class ConfigDlg
case WM_CTLCOLORDLG:
case WM_CTLCOLORSTATIC:
return (INT_PTR)GetStockObject(WHITE_BRUSH);
case WM_COMMAND:
{
HWND hwnd_control = (HWND)lParam;
int control_id = GetDlgCtrlID(hwnd_control);
if (control_id == IDC_IQ_BALANCE_RESET) {
g_config.tx_iq_balance_amplitude_correction = 1.;
g_config.tx_iq_balance_phase_correction = 0.;
init_iq_balance_tab(GetParent(hwnd_control));
}
}
case WM_HSCROLL:
switch (GetDlgCtrlID((HWND)lParam)) {
case IDC_SLIDER_OUTPUT_POWER:
Expand Down
Binary file modified ExtIO_Omnia.rc
Binary file not shown.
Binary file modified resource.h
Binary file not shown.

0 comments on commit 52e92b7

Please sign in to comment.