Compare commits

..

1 Commits

Author SHA1 Message Date
aeea755045 added logging for unknown dispenser status positions 2026-02-04 16:27:46 +00:00
3 changed files with 5 additions and 2 deletions

View File

@ -87,7 +87,7 @@ func logStatus(statusBytes []byte) {
for _, p := range posStatus { for _, p := range posStatus {
statusMsg, exists := p.mapper[p.value] statusMsg, exists := p.mapper[p.value]
if !exists { if !exists {
statusMsg = fmt.Sprintf("Unknown status 0x%X", p.value) statusMsg = fmt.Sprintf("Unknown status 0x%X at position %d", p.value, p.pos)
} }
if p.value != 0x30 { if p.value != 0x30 {
result.WriteString(statusMsg + "; ") result.WriteString(statusMsg + "; ")

View File

@ -27,7 +27,7 @@ import (
) )
const ( const (
buildVersion = "1.1.1" buildVersion = "1.1.2"
serviceName = "hardlink" serviceName = "hardlink"
pollingFrequency = 8 * time.Second pollingFrequency = 8 * time.Second
) )

View File

@ -2,6 +2,9 @@
builtVersion is a const in main.go builtVersion is a const in main.go
#### 1.1.2 - 02 February 2026
added logging for unknown dispenser status positions
#### 1.1.1 - 02 February 2026 #### 1.1.1 - 02 February 2026
added contionuous polling of the dispenser status every 8 seconds to update the card well status added contionuous polling of the dispenser status every 8 seconds to update the card well status