Skip to content

Commit

Permalink
2.6.3发布
Browse files Browse the repository at this point in the history
  • Loading branch information
applenana committed Nov 12, 2024
1 parent 0c0ba7a commit dade9a1
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 4 deletions.
Binary file modified Arduino/.pio/build/esp12e/.sconsign311.dblite
Binary file not shown.
Binary file added Arduino/.pio/build/esp12e/2.6.2-α.bin
Binary file not shown.
Binary file not shown.
Binary file modified Arduino/.pio/build/esp12e/firmware.bin
Binary file not shown.
Binary file modified Arduino/.pio/build/esp12e/firmware.elf
Binary file not shown.
2 changes: 1 addition & 1 deletion Arduino/.pio/build/esp12e/idedata.json

Large diffs are not rendered by default.

Binary file modified Arduino/.pio/build/esp12e/src/main.cpp.o
Binary file not shown.
11 changes: 8 additions & 3 deletions Arduino/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ String ha_mqtt_password;

//-=-=-=-=-=-↓系统配置↓-=-=-=-=-=-=-=-=-=
bool debug = false;
String sw_version = "v2.6-beta";
String sw_version = "v2.6.3";
String bambu_mqtt_user = "bblp";
String bambu_mqtt_id = "ams";
String ha_mqtt_id = "ams";
Expand Down Expand Up @@ -72,6 +72,7 @@ bool sameTask;
bool NeedLoad;
bool CanPush = false;//用于等待另一通道回抽完毕
long NeedStopTime = 0;//用于判断是否要发送停止信息
bool isFisrtTimePull;
String AmsStatus;
//-=-=-=-=-=-=end

Expand Down Expand Up @@ -380,6 +381,8 @@ void bambuCallback(char* topic, byte* payload, unsigned int length) {
statePublish("退料超时,请手动操作并检查挤出机状态");
}
}

isFisrtTimePull = true;
}else if (amsStatus == "0"){
statePublish("应该拔出耗材,但需要等待拔出结束");
leds.setPixelColor(2,leds.Color(0,0,0));
Expand Down Expand Up @@ -458,6 +461,7 @@ void bambuCallback(char* topic, byte* payload, unsigned int length) {
leds.show();
}
}
bambuClient.publish(bambu_topic_publish.c_str(),bambu_resume.c_str());
}else if (amsStatus == "262" and hwSwitchState == "1"){
statePublish("送入成功,停止插入");
sv.pull();
Expand Down Expand Up @@ -1004,7 +1008,8 @@ void loop() {
sv.pull();
bambuClient.publish(bambu_topic_publish.c_str(),("{\"print\":{\"command\": \"APAMS|"+String(nextFilament)+"|CANPUSH\"}}").c_str());
NeedStopTime = 0;
}else if(mc.getStopState() or sv.getState() == ""){
isFisrtTimePull = false;
}else if((mc.getStopState() or sv.getState() == "") and isFisrtTimePull){
mc.backforward();
sv.push();
}
Expand Down Expand Up @@ -1113,4 +1118,4 @@ void loop() {
}
}
}
}
}

0 comments on commit dade9a1

Please sign in to comment.