diff --git a/LinearAlgebra b/LinearAlgebra index 95a6fb3..2e61e1b 160000 --- a/LinearAlgebra +++ b/LinearAlgebra @@ -1 +1 @@ -Subproject commit 95a6fb3a4b5eca70dee33381611e5df9d28fdcee +Subproject commit 2e61e1b710cb0c0455d80970b7d072d70db7ac83 diff --git a/NetworkSync.cpp b/NetworkSync.cpp index 37c6a30..2b123f9 100644 --- a/NetworkSync.cpp +++ b/NetworkSync.cpp @@ -373,7 +373,7 @@ void NetworkSync::SendText(const char* s) { void NetworkSync::SendInt(const int x) { String s = String(x); - byte length = s.length(); + char length = s.length(); unsigned char ix = 0; buffer[ix++] = 0xB0; @@ -425,7 +425,8 @@ void NetworkSync::SendSpherical16(unsigned char* data, void NetworkSync::SendSwingTwist(unsigned char* data, unsigned char* ix, const SwingTwist16 r) { - SendQuat32(buffer, ix, r.ToQuaternion()); + Quaternion q = r.ToQuaternion(); + SendQuat32(buffer, ix, q); } void NetworkSync::SendQuat32(unsigned char* data,