diff --git a/Arduino/SendCart/SendCart.ino b/Arduino/SendCart/SendCart.ino index 6bb0292..f617563 100644 --- a/Arduino/SendCart/SendCart.ino +++ b/Arduino/SendCart/SendCart.ino @@ -75,9 +75,7 @@ void loop() { // Arduino I2C buffer is 32 bytes, so we need multiple requests per page. for (int j = 0; j < i2c_buff_per_page; j++) { Wire.requestFrom(eeprom_addr, i2c_buff_size); - for (int k = 0; k < i2c_buff_size; k++) { - pageData[i2c_buff_size*j + k] = Wire.read(); - } + Wire.readBytes(pageData + i2c_buff_size*j, i2c_buff_size); } // Try to send the full page via serial until the recipient ACKs.