lab11 / socitrack

A wearable platform for social interaction studies
https://dl.acm.org/doi/10.1145/3372224.3419190
Apache License 2.0
20 stars 15 forks source link

SW: Logfile name always DATA.LOG #18

Closed ppannuto closed 3 years ago

ppannuto commented 3 years ago

Since we're defaulting to DISABLE_RTC_TIME_CHECK, the logger doesn't try to use time at all, and will name the logfile DATA.LOG even if the device does have a valid timestamp.

hedgecrw commented 3 years ago

This is fixed with the latest check-in. Now it works like so:

If the RTC time is valid at boot, it will automatically create the time-based log file. If it is not valid, it will create a file named ID@DATA.LOG. In the future, once a valid RTC time is acquired by the network, a new log file will be created with the correct time-based name.