summaryrefslogtreecommitdiff
path: root/drivers/sensors
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-01-21 03:21:17 +1100
committerGitHub <noreply@github.com>2023-01-20 16:21:17 +0000
commitcf935d97ae479e7a1e1f2f2f248b93e52e4cc69e (patch)
treecb7dc41b774171ce7036f963941ce801e868d8cd /drivers/sensors
parent0f77ae6a20652c11bc252548bd28fd64f5fb6b97 (diff)
Fix functions with empty params (#19647)
* Fix functions with empty params * Found a bunch more
Diffstat (limited to 'drivers/sensors')
-rw-r--r--drivers/sensors/adns9800.c2
-rw-r--r--drivers/sensors/cirque_pinnacle.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/sensors/adns9800.c b/drivers/sensors/adns9800.c
index 3633f23e52..083ab34d9f 100644
--- a/drivers/sensors/adns9800.c
+++ b/drivers/sensors/adns9800.c
@@ -99,7 +99,7 @@ uint8_t adns9800_read(uint8_t reg_addr) {
return data;
}
-void adns9800_init() {
+void adns9800_init(void) {
setPinOutput(ADNS9800_CS_PIN);
spi_init();
diff --git a/drivers/sensors/cirque_pinnacle.c b/drivers/sensors/cirque_pinnacle.c
index 4aed5fe67a..3131805c20 100644
--- a/drivers/sensors/cirque_pinnacle.c
+++ b/drivers/sensors/cirque_pinnacle.c
@@ -87,7 +87,7 @@ void cirque_pinnacle_scale_data(pinnacle_data_t* coordinates, uint16_t xResoluti
}
// Clears Status1 register flags (SW_CC and SW_DR)
-void cirque_pinnacle_clear_flags() {
+void cirque_pinnacle_clear_flags(void) {
RAP_Write(HOSTREG__STATUS1, HOSTREG__STATUS1_DEFVAL & ~(HOSTREG__STATUS1__COMMAND_COMPLETE | HOSTREG__STATUS1__DATA_READY));
wait_us(50);
}