Skip to content

Commit

Permalink
Remove SD-Card destroying logging
Browse files Browse the repository at this point in the history
  • Loading branch information
st3fan committed Nov 12, 2022
1 parent ec56e63 commit c5f2ef9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions application.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,10 @@ func (app *application) run() error {
for event := range subscription.Events() {
switch event.(type) {
case EventDiscoveredSensor:
log.Println("EventDiscoveredSensor")
app.addSensor(event.(EventDiscoveredSensor).Address, event.(EventDiscoveredSensor).Data)
case EventReceivedSensorData:
log.Println("EventReceivedSensorData")
app.updateSensor(event.(EventReceivedSensorData).Address, event.(EventReceivedSensorData).Data)
case EventExpiredSensor:
log.Println("EventExpiredSensor")
app.removeSensor(event.(EventExpiredSensor).Address)
}
}
Expand Down

0 comments on commit c5f2ef9

Please sign in to comment.