Skip to content

Commit d6292f3

Browse files
committed
fix: udpate string check WriteValue
1 parent 69ff533 commit d6292f3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

epi-utilities-custom-values/CustomValuesLogicDevice.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,9 @@ private void WriteValue(string path, ushort value)
206206
private void WriteValue(string path, string value)
207207
{
208208
Debug.Console(2, this, "Writing data {0} {1}", path, value);
209-
if (!String.IsNullOrEmpty(value))
210-
{
209+
//if (!String.IsNullOrEmpty(value))
210+
if (value != null)
211+
{
211212
JToken tokenToReplace;
212213
if (UseFile)
213214
{
@@ -221,7 +222,7 @@ private void WriteValue(string path, string value)
221222
}
222223
Feedbacks[path].FireUpdate();
223224
WriteFile();
224-
}
225+
}
225226

226227
}
227228

0 commit comments

Comments
 (0)