Skip to content

Commit 73b496c

Browse files
committed
Fixed interval preference setting
1 parent fe8d04d commit 73b496c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

hardware/1Wire/1WireCommon.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ struct _t1WireDevice
8181
std::string devid;
8282
std::string filename;
8383

84-
bool operator<(_t1WireDevice other) const
85-
{
86-
return devid > other.devid;
84+
bool operator<(_t1WireDevice other) const
85+
{
86+
return devid > other.devid;
8787
}
8888
};
8989

main/SQLHelper.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2453,16 +2453,17 @@ bool CSQLHelper::OpenDatabase()
24532453
nValue = 5;
24542454
UpdatePreferencesVar("ShortLogInterval", nValue);
24552455
}
2456+
if (nValue < 1)
2457+
nValue = 5;
2458+
m_ShortLogInterval = nValue;
2459+
24562460
if (!GetPreferencesVar("SendErrorsAsNotification", nValue))
24572461
{
24582462
UpdatePreferencesVar("SendErrorsAsNotification", 0);
24592463
nValue = 0;
24602464
}
24612465
_log.ForwardErrorsToNotificationSystem(nValue != 0);
24622466

2463-
if (nValue < 1)
2464-
nValue = 5;
2465-
m_ShortLogInterval = nValue;
24662467
//Start background thread
24672468
if (!StartThread())
24682469
return false;

0 commit comments

Comments
 (0)