Improved dock detection

This commit is contained in:
Jordon Brooks 2024-01-16 02:04:22 +00:00
parent 545815fd6d
commit ea7042c9ad
No known key found for this signature in database
GPG key ID: 83964894E5D98D57
7 changed files with 95 additions and 34 deletions

View file

@ -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));
}