From 614ef4031c899fc4babba2f5ae068353b7f1a74f Mon Sep 17 00:00:00 2001 From: BuGu <1220627966@qq.com> Date: Mon, 24 Feb 2025 16:26:07 +0800 Subject: [PATCH] Stop outputting the WiFi configuration QR code. The QR code used for WiFi configuration is only output to the file during debugging; it was forgotten to be deleted. --- support/kvm_system/main/lib/oled_ui/oled_ui.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/support/kvm_system/main/lib/oled_ui/oled_ui.cpp b/support/kvm_system/main/lib/oled_ui/oled_ui.cpp index 74923fd..5987d37 100644 --- a/support/kvm_system/main/lib/oled_ui/oled_ui.cpp +++ b/support/kvm_system/main/lib/oled_ui/oled_ui.cpp @@ -127,12 +127,13 @@ int qrencode(char *string) printf("error %s", qrGetErrorInfo(p)); return -1; } - ofstream f("/etc/kvm/wifi_config.bmp"); - if (f.fail()) { - return -1; - } - f.write((const char *)buffer, size); - f.close(); + // output qrcode to file + // ofstream f("/etc/kvm/wifi_config.bmp"); + // if (f.fail()) { + // return -1; + // } + // f.write((const char *)buffer, size); + // f.close(); return 0; }