Compare commits

..

3 Commits

Author SHA1 Message Date
08abd1a37f docs: update changelog and header for version v1.5.12-beta10
All checks were successful
Release Workflow / detect-provider (push) Successful in 3s
Release Workflow / github-release (push) Has been skipped
Release Workflow / gitea-release (push) Successful in 3m32s
2025-08-29 13:09:26 +02:00
da78861613 docs: update platformio.ini for beta version v1.5.12-beta10 2025-08-29 13:09:25 +02:00
9231a303f3 refactor: streamline task creation in checkVendor and checkFilament functions 2025-08-29 13:09:17 +02:00
3 changed files with 25 additions and 43 deletions

View File

@@ -1,5 +1,11 @@
# Changelog
## [1.5.12-beta10] - 2025-08-29
### Changed
- update platformio.ini for beta version v1.5.12-beta10
- streamline task creation in checkVendor and checkFilament functions
## [1.5.12-beta9] - 2025-08-29
### Added
- update vendor and filament ID handling to use NULL and add delays for stability

View File

@@ -9,7 +9,7 @@
; https://docs.platformio.org/page/projectconf.html
[common]
version = "1.5.12-beta9"
version = "1.5.12-beta10"
to_old_version = "1.5.0"
##

View File

@@ -701,27 +701,15 @@ uint16_t checkVendor(String vendor) {
vTaskDelay(100 / portTICK_PERIOD_MS);
}
if(spoolmanApiState == API_IDLE) {
// Erstelle die Task
BaseType_t result = xTaskCreate(
sendToApi, // Task-Funktion
"SendToApiTask", // Task-Name
6144, // Stackgröße in Bytes
(void*)params, // Parameter
0, // Priorität
NULL // Task-Handle (nicht benötigt)
);
} else {
Serial.println("Not spawning new task, API still active!");
delete params;
return 0;
}
// Wait for task completion
while(spoolmanApiState != API_IDLE) {
vTaskDelay(100 / portTICK_PERIOD_MS);
}
// Erstelle die Task
BaseType_t result = xTaskCreate(
sendToApi, // Task-Funktion
"SendToApiTask", // Task-Name
6144, // Stackgröße in Bytes
(void*)params, // Parameter
0, // Priorität
NULL // Task-Handle (nicht benötigt)
);
// Additional delay to ensure foundVendorId is properly set after API state becomes IDLE
while (foundVendorId == NULL)
@@ -852,27 +840,15 @@ uint16_t checkFilament(uint16_t vendorId, const JsonDocument& payload) {
params->spoolsUrl = spoolsUrl;
params->updatePayload = ""; // Empty for GET request
// Check if API is idle before creating task
//if(spoolmanApiState == API_IDLE){
// Erstelle die Task
BaseType_t result = xTaskCreate(
sendToApi, // Task-Funktion
"SendToApiTask", // Task-Name
6144, // Stackgröße in Bytes
(void*)params, // Parameter
0, // Priorität
NULL // Task-Handle (nicht benötigt)
);
//} else {
// Serial.println("Not spawning new task, API still active!");
// delete params;
// return 0;
//}
// Wait for task completion
while(spoolmanApiState != API_IDLE) {
vTaskDelay(100 / portTICK_PERIOD_MS);
}
// Erstelle die Task
BaseType_t result = xTaskCreate(
sendToApi, // Task-Funktion
"SendToApiTask", // Task-Name
6144, // Stackgröße in Bytes
(void*)params, // Parameter
0, // Priorität
NULL // Task-Handle (nicht benötigt)
);
// Additional delay to ensure foundFilamentId is properly set after API state becomes IDLE
while (foundFilamentId == NULL) {