Skip to content

Commit

Permalink
avoid unknown device
Browse files Browse the repository at this point in the history
  • Loading branch information
b1conrad committed Jul 6, 2024
1 parent b8e9787 commit d59efed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions krl/io.picolabs.plan.wovyn-sensors.krl
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ daysInRecord()
time = time:now()
record = ent:record{device}.defaultsTo([]).append([time,tempF])
}
if local_name then noop()
fired {
ent:record{device} := record
raise io_picolabs_plan_wovyn_sensors event "temp_recorded"
Expand Down

1 comment on commit d59efed

@b1conrad
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made this change in preparation for replacing a device that had become unreliable. Didn't want readings from a new device to pollute ent:record.

In the end, I was unable to program the replacement device, so ended up just swapping two devices, and will manually fix the spreadsheet where each day's readings are kept in a tab.

Please sign in to comment.