aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/painter/qp_comms.c
diff options
context:
space:
mode:
authorQMK Bot2025-11-11 13:21:26 +0100
committerQMK Bot2025-11-11 13:21:26 +0100
commit019cba746d1408365b906fb9d6163d9b0ab204ec (patch)
treebfbc4c305d5d6e95f69b0912a3b08b2a771090c1 /quantum/painter/qp_comms.c
parent28eeb92f8eec5b8268d2a74ad0561670d14e189a (diff)
parente7ad19bb953c6f430fb3501386b96962dbe9912c (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'quantum/painter/qp_comms.c')
-rw-r--r--quantum/painter/qp_comms.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/quantum/painter/qp_comms.c b/quantum/painter/qp_comms.c
index 63667783e1..402165b119 100644
--- a/quantum/painter/qp_comms.c
+++ b/quantum/painter/qp_comms.c
@@ -49,15 +49,15 @@ uint32_t qp_comms_send(painter_device_t device, const void *data, uint32_t byte_
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Comms APIs that use a D/C pin
-void qp_comms_command(painter_device_t device, uint8_t cmd) {
+bool qp_comms_command(painter_device_t device, uint8_t cmd) {
painter_driver_t * driver = (painter_driver_t *)device;
painter_comms_with_command_vtable_t *comms_vtable = (painter_comms_with_command_vtable_t *)driver->comms_vtable;
- comms_vtable->send_command(device, cmd);
+ return comms_vtable->send_command(device, cmd);
}
-void qp_comms_command_databyte(painter_device_t device, uint8_t cmd, uint8_t data) {
+bool qp_comms_command_databyte(painter_device_t device, uint8_t cmd, uint8_t data) {
qp_comms_command(device, cmd);
- qp_comms_send(device, &data, sizeof(data));
+ return qp_comms_send(device, &data, sizeof(data));
}
uint32_t qp_comms_command_databuf(painter_device_t device, uint8_t cmd, const void *data, uint32_t byte_count) {
@@ -65,8 +65,8 @@ uint32_t qp_comms_command_databuf(painter_device_t device, uint8_t cmd, const vo
return qp_comms_send(device, data, byte_count);
}
-void qp_comms_bulk_command_sequence(painter_device_t device, const uint8_t *sequence, size_t sequence_len) {
+bool qp_comms_bulk_command_sequence(painter_device_t device, const uint8_t *sequence, size_t sequence_len) {
painter_driver_t * driver = (painter_driver_t *)device;
painter_comms_with_command_vtable_t *comms_vtable = (painter_comms_with_command_vtable_t *)driver->comms_vtable;
- comms_vtable->bulk_command_sequence(device, sequence, sequence_len);
+ return comms_vtable->bulk_command_sequence(device, sequence, sequence_len);
}