Skip to content

Commit ee02cdf

Browse files
authored
Fix ParseJSONRawData bigendian
1 parent 9ee3deb commit ee02cdf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ROSBridgeUtils.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using SimpleJSON;
1+
using SimpleJSON;
22

33
namespace ROSBridgeLib
44
{
@@ -63,12 +63,12 @@ public static byte[] JSONArrayToBytes(JSONArray array, bool is_bigendian = true)
6363
public static byte[] ParseJSONRawData(JSONNode node, bool is_bigendian = true)
6464
{
6565
if (node.GetType() == typeof(JSONArray)) {
66-
return JSONArrayToBytes(node.AsArray);
66+
return JSONArrayToBytes(node.AsArray, is_bigendian);
6767
} else
6868
{
69-
return JSONDataToBytes(node);
69+
return JSONDataToBytes(node, is_bigendian);
7070
}
7171
}
7272
}
7373
}
74-
}
74+
}

0 commit comments

Comments
 (0)