Minor improvements

This commit is contained in:
Pascal Serrarens 2024-09-26 12:09:56 +02:00
parent 827504fbd0
commit 8d5707ce57
2 changed files with 4 additions and 3 deletions

@ -1 +1 @@
Subproject commit 95a6fb3a4b5eca70dee33381611e5df9d28fdcee
Subproject commit 2e61e1b710cb0c0455d80970b7d072d70db7ac83

View File

@ -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,