mirror of
https://github.com/usatiuk/EggbotWireless.git
synced 2025-10-26 16:57:48 +01:00
m99 hotfix
This commit is contained in:
@@ -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];
|
||||||
|
|||||||
Reference in New Issue
Block a user