Skip to content

Commit

Permalink
Log connection status for score table and E-Stops in ESP32 IO handling
Browse files Browse the repository at this point in the history
  • Loading branch information
cpapplefamily committed Dec 30, 2024
1 parent 29a2998 commit 81d7217
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plc/esp32IO.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ func (esp32 *Esp32IO) Run() {
esp32.scoreTableHealthy = false
continue
}else{
if (!esp32.scoreTableHealthy){
log.Printf("Score Table Connected at: %s", esp32.ScoreTableIP)
}
esp32.scoreTableHealthy = true
}
}
Expand All @@ -130,6 +133,9 @@ func (esp32 *Esp32IO) Run() {
esp32.RedEstopsHealthy = false
continue
}else{
if (!esp32.RedEstopsHealthy){
log.Printf("Red Estops Connected at: %s ", esp32.RedAllianceEstopsIP)
}
esp32.RedEstopsHealthy = true
}
}
Expand All @@ -146,6 +152,9 @@ func (esp32 *Esp32IO) Run() {
esp32.BlueEstopsHealthy = false
continue
}else{
if (!esp32.BlueEstopsHealthy){
log.Printf("Blue Estops Connected at: %s ", esp32.BlueAllianceEstopsIP)
}
esp32.BlueEstopsHealthy = true
}
}
Expand Down

0 comments on commit 81d7217

Please sign in to comment.