Improved dock detection
This commit is contained in:
parent
545815fd6d
commit
ea7042c9ad
7 changed files with 95 additions and 34 deletions
|
@ -128,6 +128,12 @@ int main()
|
|||
battery->free();
|
||||
}
|
||||
|
||||
const bool is_docked = HarmonyLinkLib::get_is_docked();
|
||||
|
||||
const char* dock_check_string = is_docked ? "is" : "isn't";
|
||||
|
||||
wprintf(L"Device %hs docked\n", dock_check_string);
|
||||
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue