kufii / CodeSnap

📸 Take beautiful screenshots of your code in VS Code!
https://marketplace.visualstudio.com/items?itemName=adpyke.codesnap
508 stars 67 forks source link

Shutter not clickable on certain block of code #139

Open KamKaminski opened 1 year ago

KamKaminski commented 1 year ago

Shutter is not clickable for whatever reason on this bit of code, replicated the issue on different system. void setupWiFi() {

ifdef SOFTAP_MODE

 Serial.println("Configuring access point...");
uint8_t mac[6];
char buff[128];
WiFi.macAddress(mac);
sprintf(buff, "T-Higrow-%02X:%02X", mac[4], mac[5]);
WiFi.softAP(buff);
Serial.printf("SERIVE IS running at 192.168.4.1 %s  \n", buff);

else

WiFi.mode(WIFI_STA);

Serial.print("Connect SSID:");
Serial.print(WIFI_SSID);
Serial.print(" Password:");
Serial.println(WIFI_PASSWD);
Serial.println(millis());
WiFi.begin(WIFI_SSID2, WIFI_PASSWD2);
if (WiFi.waitForConnectResult() != WL_CONNECTED) {

    Serial.println("WiFi connect fail!");
    delay(3000);
    esp_restart();
}

Serial.print("WiFi connect success ! , ");
Serial.print("IP Address: ");
Serial.println(WiFi.localIP());

config.api_key = API_KEY;
config.database_url = DATABASE_URL;
if (Firebase.signUp(&config, &auth, "", ""))
{
    Serial.println("ok");
    signupOK = true;
}
    else
    {
        Serial.printf("%s\n", config.signer.signupError.message.c_str());
    }
Firebase.begin(&config, &auth);
Firebase.reconnectWiFi(true);

endif

server.begin();

}

pfui-bah-kiste commented 5 months ago

Same problem as in #140 and #148.

DaphneOdera17 commented 4 months ago

see https://github.com/kufii/CodeSnap/issues/140#issuecomment-1921738628 . This line "sprintf(buff, "T-Higrow-%02X:%02X", mac[4], mac[5]);" cause the problem