Compare commits
9 Commits
v2.0.4-bet
...
e0d641c817
Author | SHA1 | Date | |
---|---|---|---|
e0d641c817 | |||
40fdb667fa | |||
8f6ecb350f | |||
16887f5248 | |||
a7b06c9b97 | |||
666c929483 | |||
301109c37b | |||
d43fceebbc | |||
2c435e5c98 |
21
CHANGELOG.md
21
CHANGELOG.md
@@ -1,5 +1,26 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [2.0.6] - 2025-09-03
|
||||||
|
### Fixed
|
||||||
|
- correct progress bar message and update tare function description
|
||||||
|
|
||||||
|
|
||||||
|
## [2.0.5] - 2025-09-03
|
||||||
|
### Changed
|
||||||
|
- adjust auto tare counter threshold and reposition tare check in scale loop
|
||||||
|
- improve auto tare logic and reset conditions in scale handling
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- update progress bar message from 'Tare scale' to 'Searching scale'
|
||||||
|
- Scale tare function after boot
|
||||||
|
|
||||||
|
|
||||||
|
## [2.0.4-beta2] - 2025-09-03
|
||||||
|
### Changed
|
||||||
|
- adjust auto tare counter threshold and reposition tare check in scale loop
|
||||||
|
- improve auto tare logic and reset conditions in scale handling
|
||||||
|
|
||||||
|
|
||||||
## [2.0.4-beta1] - 2025-09-03
|
## [2.0.4-beta1] - 2025-09-03
|
||||||
### Changed
|
### Changed
|
||||||
- improve auto tare logic and reset conditions in scale handling
|
- improve auto tare logic and reset conditions in scale handling
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
; https://docs.platformio.org/page/projectconf.html
|
; https://docs.platformio.org/page/projectconf.html
|
||||||
|
|
||||||
[common]
|
[common]
|
||||||
version = "2.0.4-beta1"
|
version = "2.0.6"
|
||||||
to_old_version = "1.5.10"
|
to_old_version = "1.5.10"
|
||||||
|
|
||||||
##
|
##
|
||||||
|
@@ -161,21 +161,10 @@ void scale_loop(void * parameter) {
|
|||||||
|
|
||||||
// Only measure at defined intervals to reduce noise
|
// Only measure at defined intervals to reduce noise
|
||||||
if (currentTime - lastMeasurementTime >= MEASUREMENT_INTERVAL_MS) {
|
if (currentTime - lastMeasurementTime >= MEASUREMENT_INTERVAL_MS) {
|
||||||
// Prüfen ob die Waage korrekt genullt ist
|
|
||||||
// Abweichung von 2g ignorieren
|
|
||||||
if (autoTare && (weight > 2 && weight < 7) || weight < -2)
|
|
||||||
{
|
|
||||||
scale_tare_counter++;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
scale_tare_counter = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (scale.is_ready())
|
if (scale.is_ready())
|
||||||
{
|
{
|
||||||
// Waage manuell Taren
|
// Waage manuell Taren
|
||||||
if (scaleTareRequest == true || (autoTare && scale_tare_counter >= 5))
|
if (scaleTareRequest == true || (autoTare && scale_tare_counter >= 20))
|
||||||
{
|
{
|
||||||
Serial.println("Re-Tare scale");
|
Serial.println("Re-Tare scale");
|
||||||
oledShowMessage("TARE Scale");
|
oledShowMessage("TARE Scale");
|
||||||
@@ -200,6 +189,17 @@ void scale_loop(void * parameter) {
|
|||||||
weight = stabilizedWeight;
|
weight = stabilizedWeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Prüfen ob die Waage korrekt genullt ist
|
||||||
|
// Abweichung von 2g ignorieren
|
||||||
|
if (autoTare && (rawWeight > 2 && rawWeight < 7) || rawWeight < -2)
|
||||||
|
{
|
||||||
|
scale_tare_counter++;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
scale_tare_counter = 0;
|
||||||
|
}
|
||||||
|
|
||||||
// Debug output for monitoring (can be removed in production)
|
// Debug output for monitoring (can be removed in production)
|
||||||
static unsigned long lastDebugTime = 0;
|
static unsigned long lastDebugTime = 0;
|
||||||
if (currentTime - lastDebugTime > 2000) { // Print every 2 seconds
|
if (currentTime - lastDebugTime > 2000) { // Print every 2 seconds
|
||||||
@@ -242,7 +242,7 @@ void start_scale(bool touchSensorConnected) {
|
|||||||
|
|
||||||
scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);
|
scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);
|
||||||
|
|
||||||
oledShowProgressBar(6, 7, DISPLAY_BOOT_TEXT, "Tare scale");
|
oledShowProgressBar(6, 7, DISPLAY_BOOT_TEXT, "Serching scale");
|
||||||
for (uint16_t i = 0; i < 3000; i++) {
|
for (uint16_t i = 0; i < 3000; i++) {
|
||||||
yield();
|
yield();
|
||||||
vTaskDelay(pdMS_TO_TICKS(1));
|
vTaskDelay(pdMS_TO_TICKS(1));
|
||||||
|
Reference in New Issue
Block a user