aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/painter/qp_comms.h
diff options
context:
space:
mode:
authorPablo Martínez2025-11-11 13:20:48 +0100
committerGitHub2025-11-11 13:20:48 +0100
commite7ad19bb953c6f430fb3501386b96962dbe9912c (patch)
treea2f98ab92df4dfc67324d8225cb3227b813e08b9 /quantum/painter/qp_comms.h
parent024c4ef85395f3230ab1599a4f1c87ffeab7e553 (diff)
[Bugfix] QP error handling (#25591)
* change QP so that any func can return error (`void` -> `bool` returns)
Diffstat (limited to 'quantum/painter/qp_comms.h')
-rw-r--r--quantum/painter/qp_comms.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/quantum/painter/qp_comms.h b/quantum/painter/qp_comms.h
index 8fbf25c201..dc5892b1bb 100644
--- a/quantum/painter/qp_comms.h
+++ b/quantum/painter/qp_comms.h
@@ -19,7 +19,7 @@ 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);
-void qp_comms_command_databyte(painter_device_t device, uint8_t cmd, uint8_t data);
+bool qp_comms_command(painter_device_t device, uint8_t cmd);
+bool qp_comms_command_databyte(painter_device_t device, uint8_t cmd, uint8_t data);
uint32_t qp_comms_command_databuf(painter_device_t device, uint8_t cmd, const void* data, uint32_t 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);