m99 hotfix

This commit is contained in:
2019-07-23 16:55:40 +03:00
parent 8d5cf430df
commit 9fbdbda4f1

View File

@@ -10,11 +10,6 @@ void Executor::execCommand(Command command) {
byte buffer[7][sizeof(float)]; byte buffer[7][sizeof(float)];
command.toBytes(buffer[0]); command.toBytes(buffer[0]);
for (int i = 0; i < 7; i++) { for (int i = 0; i < 7; i++) {
/*
float dbg;
bytesToFloat(&dbg, buffer[i]);
Serial.println(dbg);
*/
Wire.write(buffer[i], sizeof(float)); Wire.write(buffer[i], sizeof(float));
} }
Wire.endTransmission(); Wire.endTransmission();
@@ -28,6 +23,7 @@ void Executor::execCommand(Command command) {
} }
if (command.type == CommandType::M99) { if (command.type == CommandType::M99) {
delay(10);
Wire.requestFrom(8, 5 * sizeof(float)); Wire.requestFrom(8, 5 * sizeof(float));
float resp[5]; float resp[5];