You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MLC/arduino/Firmware/Firmware.ino
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -139,7 +139,7 @@ int actuate(const char* data)
139
139
int byte_count = byte(data[1]); // Un byte puede llegar a limitar la cantidad de salidas... creo
140
140
141
141
uint8_t digital_input_buffer[DIGITAL_PINS_COUNT][REPORT_READ_COUNT / 8 + 2]; // 255 lectures of 1 bit for every digital pin -- 1 extra byte for the port address
142
-
uint8_t analog_input_buffer[ANALOG_PINS_COUNT][(2 * REPORT_READ_COUNT) + 2]; // 255 lectures of 2 bytes for every analog pin -- 1 extra byte for the port address
142
+
uint8_t analog_input_buffer[ANALOG_PINS_COUNT][(2 * REPORT_READ_COUNT) + 3]; // 255 lectures of 2 bytes for every analog pin -- 1 extra byte for the port address
143
143
144
144
LOG("Actutating over payload of size: ", byte_count);
145
145
@@ -201,15 +201,17 @@ int actuate(const char* data)
201
201
//response[len + 2] = byte((data & 0xFF00) >> 8); // Se guarda el msb en el buffer
202
202
//response[len + 3] = byte(data & 0xFF); // Se guarda el lsb en el buffer
0 commit comments