forked from mirror/qmk_firmware
[QP] Minor cleanup and support for RGB888 surface (#25706)
Co-authored-by: Drashna Jaelre <drashna@live.com>
This commit is contained in:
@@ -36,7 +36,7 @@ uint32_t qp_comms_spi_send_data(painter_device_t device, const void *data, uint3
|
||||
const uint32_t max_msg_length = 1024;
|
||||
|
||||
while (bytes_remaining > 0) {
|
||||
uint32_t bytes_this_loop = QP_MIN(bytes_remaining, max_msg_length);
|
||||
uint32_t bytes_this_loop = MIN(bytes_remaining, max_msg_length);
|
||||
spi_transmit(p, bytes_this_loop);
|
||||
p += bytes_this_loop;
|
||||
bytes_remaining -= bytes_this_loop;
|
||||
|
||||
Reference in New Issue
Block a user