Skip to content

Commit af2a778

Browse files
committed
Corrected old value
1 parent 402ce8d commit af2a778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/SQLHelper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4762,8 +4762,8 @@ uint64_t CSQLHelper::UpdateValueInt(const int HardwareID, const char* ID, const
47624762
old_sValue = sCompValue;
47634763
}
47644764
}
4765+
sValue = old_sValue.c_str();
47654766
}
4766-
sValue = old_sValue.c_str();
47674767
//~ use different update queries based on the device type
47684768
if (devType == pTypeGeneral && subType == sTypeCounterIncremental)
47694769
{

0 commit comments

Comments
 (0)