I made the following general improvements today:
- Increased gate valve closed tolerance to 2% to reduce hunting.
- Use 24-hour time in logging messages for better clarity.
- Log files:
- Rotate log files each night at midnight (note the names are slightly different to the readings files, but it's still very clear).
- (the names are different because there's a built-in way to do this).
- Automatically recreate log files if they are moved or deleted.