make servo visible by default

This commit is contained in:
Sebastien Bourdeauducq 2025-01-21 11:01:12 +08:00
parent e4a2093460
commit 0476ad2efd

View File

@ -316,7 +316,7 @@ int main(int argc, char* argv[])
std::atexit(glfwTerminate); std::atexit(glfwTerminate);
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
static GLFWwindow *window = glfwCreateWindow(1024, 1200, "Soundlocker", nullptr, nullptr); static GLFWwindow *window = glfwCreateWindow(1024, 1370, "Soundlocker", nullptr, nullptr);
if(window == nullptr) { if(window == nullptr) {
std::cerr << "failed to create GLFW window\n"; std::cerr << "failed to create GLFW window\n";
return 1; return 1;
@ -481,7 +481,7 @@ int main(int argc, char* argv[])
} }
} }
if(ImGui::CollapsingHeader("Laser servo")) { if(ImGui::CollapsingHeader("Laser servo", ImGuiTreeNodeFlags_DefaultOpen)) {
for(int i=0;i<SND_PCHAN;i++) { for(int i=0;i<SND_PCHAN;i++) {
char str[64]; char str[64];
sprintf(str, "Channel %d", i); sprintf(str, "Channel %d", i);