Weighing: Add option to opt-out of automatic datetime sync at startup
This commit is contained in:
+1
-1
@@ -146,7 +146,7 @@ namespace Elwig {
|
||||
foreach (var s in Config.Scales) {
|
||||
try {
|
||||
var scale = Scale.FromConfig(s);
|
||||
if (scale is ICommandScale cmd) {
|
||||
if (s.SyncTime && scale is ICommandScale cmd) {
|
||||
try {
|
||||
await cmd.SetDateAndTime(DateTime.Now);
|
||||
} catch { }
|
||||
|
||||
Reference in New Issue
Block a user