Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1b4701bf76 | |||
| a2df2621e1 | |||
| 74aaedd72d | |||
| 4dff77e75d | |||
| 907765bcaa | |||
| b867aade7d | |||
| 36771235ad |
15
CHANGELOG.md
15
CHANGELOG.md
@@ -1,5 +1,20 @@
|
||||
# Changelog
|
||||
|
||||
## [2.0.10] - 2025-10-15
|
||||
### Fixed
|
||||
- fix typo
|
||||
|
||||
|
||||
## [2.0.9] - 2025-10-15
|
||||
|
||||
## [2.0.8] - 2025-10-15
|
||||
### Added
|
||||
- Fix: Add NULL checks to prevent crash without RFID module
|
||||
|
||||
### Changed
|
||||
- Merge pull request #51 from Anzarion/main
|
||||
|
||||
|
||||
## [2.0.7] - 2025-09-13
|
||||
### Added
|
||||
- add HTTP service to mDNS responder
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
; https://docs.platformio.org/page/projectconf.html
|
||||
|
||||
[common]
|
||||
version = "2.0.7"
|
||||
version = "2.0.10"
|
||||
to_old_version = "1.5.10"
|
||||
|
||||
##
|
||||
|
||||
10
src/main.cpp
10
src/main.cpp
@@ -203,11 +203,11 @@ void loop() {
|
||||
// Prüfen ob das Gewicht gleich bleibt und dann senden
|
||||
if (abs(weight - lastWeight) <= 2 && weight > 5)
|
||||
{
|
||||
weigthCouterToApi++;
|
||||
weightCounterToApi++;
|
||||
}
|
||||
else
|
||||
{
|
||||
weigthCouterToApi = 0;
|
||||
weightCounterToApi = 0;
|
||||
weightSend = 0;
|
||||
}
|
||||
}
|
||||
@@ -215,13 +215,13 @@ void loop() {
|
||||
// reset weight counter after writing tag
|
||||
if (currentMillis - lastWeightReadTime >= weightReadInterval && nfcReaderState != NFC_IDLE && nfcReaderState != NFC_READ_SUCCESS)
|
||||
{
|
||||
weigthCouterToApi = 0;
|
||||
weightCounterToApi = 0;
|
||||
}
|
||||
|
||||
lastWeight = weight;
|
||||
|
||||
// Wenn ein Tag mit SM id erkannte wurde und der Waage Counter anspricht an SM Senden
|
||||
if (activeSpoolId != "" && weigthCouterToApi > 3 && weightSend == 0 && nfcReaderState == NFC_READ_SUCCESS && tagProcessed == false && spoolmanApiState == API_IDLE)
|
||||
if (activeSpoolId != "" && weightCounterToApi > 3 && weightSend == 0 && nfcReaderState == NFC_READ_SUCCESS && tagProcessed == false && spoolmanApiState == API_IDLE)
|
||||
{
|
||||
// set the current tag as processed to prevent it beeing processed again
|
||||
tagProcessed = true;
|
||||
@@ -248,7 +248,7 @@ void loop() {
|
||||
}
|
||||
|
||||
// Handle successful tag write: Send weight to Spoolman but NEVER auto-send to Bambu
|
||||
if (activeSpoolId != "" && weigthCouterToApi > 3 && weightSend == 0 && nfcReaderState == NFC_WRITE_SUCCESS && tagProcessed == false && spoolmanApiState == API_IDLE)
|
||||
if (activeSpoolId != "" && weightCounterToApi > 3 && weightSend == 0 && nfcReaderState == NFC_WRITE_SUCCESS && tagProcessed == false && spoolmanApiState == API_IDLE)
|
||||
{
|
||||
// set the current tag as processed to prevent it beeing processed again
|
||||
tagProcessed = true;
|
||||
|
||||
Reference in New Issue
Block a user