13
0
Fork 1

Add hotkey for showing which mode we're currently in (PP or FP scan)

git-svn-id: https://dedected.org/svn/trunk@36 8d8ab74c-27aa-4a3d-9bde-523a2bc1f624
This commit is contained in:
kaner 2009-01-11 01:39:45 +00:00
parent a77cb8deda
commit 4744210ff8
1 changed files with 18 additions and 1 deletions

View File

@ -136,7 +136,8 @@ public:
"U - Unlock channel hopping\n"
//"S - Set (and lock) channel\n"
"F - Do async FP scan (default)\n"
"A - Do async call scan\n"
"A - Do async PP scan\n"
"M - Show current mode\n"
//"P - PP scan for active calls\n"
"r - Sort by RSSI (ascending)\n"
"R - Sort by RSSI (descending)\n"
@ -196,6 +197,22 @@ public:
}
return 0;
}
if (in_key == 'M') {
string current_mode = "Unkown/Other";
string mode_title = "";
if (mode == MODE_ASYNC_FP_SCAN) {
current_mode = "Async FP Scan";
} else if (mode == MODE_ASYNC_PP_SCAN) {
current_mode = "Async PP Scan";
}
string mode_text = "Current mode is: " + current_mode;
Kis_ModalAlert_Panel *ma = new Kis_ModalAlert_Panel(globalreg, globalreg->panel_interface);
ma->Position(6, 10, 5, 45);
ma->ConfigureAlert(mode_title, mode_text);
globalreg->panel_interface->AddPanel(ma);
return 0;
}
if (in_key == 'r') {
sort_by = SORT_BY_RSSI;
descending = false;