Compare commits
2 Commits
v2.0.2
...
1dba2b2f23
Author | SHA1 | Date | |
---|---|---|---|
1dba2b2f23 | |||
cca0bd9dbe |
@@ -220,7 +220,6 @@ void loop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// reset weight counter after writing tag
|
// reset weight counter after writing tag
|
||||||
// TBD: what exactly is the logic behind this?
|
|
||||||
if (currentMillis - lastWeightReadTime >= weightReadInterval && nfcReaderState != NFC_IDLE && nfcReaderState != NFC_READ_SUCCESS)
|
if (currentMillis - lastWeightReadTime >= weightReadInterval && nfcReaderState != NFC_IDLE && nfcReaderState != NFC_READ_SUCCESS)
|
||||||
{
|
{
|
||||||
weigthCouterToApi = 0;
|
weigthCouterToApi = 0;
|
||||||
@@ -272,7 +271,7 @@ void loop() {
|
|||||||
|
|
||||||
if(octoEnabled && sendOctoUpdate && spoolmanApiState == API_IDLE)
|
if(octoEnabled && sendOctoUpdate && spoolmanApiState == API_IDLE)
|
||||||
{
|
{
|
||||||
updateSpoolOcto(autoSetToBambuSpoolId);
|
updateSpoolOcto(activeSpoolId.toInt());
|
||||||
sendOctoUpdate = false;
|
sendOctoUpdate = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -257,8 +257,10 @@ void start_scale(bool touchSensorConnected) {
|
|||||||
// Display Gewicht
|
// Display Gewicht
|
||||||
oledShowWeight(0);
|
oledShowWeight(0);
|
||||||
|
|
||||||
vTaskDelay(1000 / portTICK_PERIOD_MS);
|
vTaskDelay(500 / portTICK_PERIOD_MS);
|
||||||
scale.tare();
|
scale.tare();
|
||||||
|
vTaskDelay(500 / portTICK_PERIOD_MS);
|
||||||
|
weight = 0;
|
||||||
|
|
||||||
Serial.println("starte Scale Task");
|
Serial.println("starte Scale Task");
|
||||||
BaseType_t result = xTaskCreatePinnedToCore(
|
BaseType_t result = xTaskCreatePinnedToCore(
|
||||||
|
Reference in New Issue
Block a user