mirror of
https://github.com/sipeed/NanoKVM.git
synced 2026-09-11 00:22:56 -05:00
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user