Skip to content

Commit

Permalink
disabled debuging lines
Browse files Browse the repository at this point in the history
  • Loading branch information
DutchDevelop committed Apr 14, 2023
1 parent e0c5b93 commit a5214b0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
21 changes: 10 additions & 11 deletions BambulabDirectConnectionLedstrip.ino
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ void PrinterCallback(char* topic, byte* payload, unsigned int length){ //Functio
if (length < 500) { //Ignore the MC_Print message
return;
}
Serial.print("Message arrived in topic: ");
Serial.println(topic);
Serial.print("Message:");
//Serial.print("Message arrived in topic: ");
//Serial.println(topic);
//Serial.print("Message:");

StaticJsonDocument<11000> doc;
DeserializationError error = deserializeJson(doc, payload, length);
Expand All @@ -183,8 +183,8 @@ void PrinterCallback(char* topic, byte* payload, unsigned int length){ //Functio

CurrentStage = doc["print"]["stg_cur"];

Serial.print("stg_cur: ");
Serial.println(CurrentStage);
//Serial.print("stg_cur: ");
// Serial.println(CurrentStage);

if (doc["print"]["gcode_state"] == "FINISH" && finishstartms <= 0){
finishstartms = millis();
Expand All @@ -200,20 +200,20 @@ void PrinterCallback(char* topic, byte* payload, unsigned int length){ //Functio
};
}

Serial.print("HMS error: ");
Serial.println(hasHMSerror);
//Serial.print("HMS error: ");
//Serial.println(hasHMSerror);

if (!doc["print"].containsKey("lights_report")) {
return;
}

ledstate = doc["print"]["lights_report"][0]["mode"] == "on";

Serial.print("cur_led: ");
Serial.println(ledstate);
//Serial.print("cur_led: ");
//Serial.println(ledstate);


Serial.println(" - - - - - - - - - - - -");
//Serial.println(" - - - - - - - - - - - -");

handleLed();
}
Expand All @@ -228,7 +228,6 @@ void setup() { // Setup function

WiFiClient.setInsecure();
mqttClient.setBufferSize(11000);

wifiManager.autoConnect(wifiname);

WiFi.hostname("bambuledcontroller");
Expand Down
4 changes: 2 additions & 2 deletions build/manifest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "bambulabledcontroller",
"version": "0.8.2",
"version": "1.0.0",
"new_install_prompt_erase": true,
"builds": [
{
"chipFamily": "ESP8266",
"parts": [
{ "path": "blledcontroller_v082.bin", "offset": 0 }
{ "path": "blledcontroller_v100.bin", "offset": 0 }
]
}
]
Expand Down

0 comments on commit a5214b0

Please sign in to comment.