From 41c255638600b33386e51f082b83c5424d31a3e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Thu, 28 Sep 2017 02:26:56 +0200 Subject: [PATCH] Use the static keyword wherever it's valid inside of uhk_module_driver.c --- right/src/slave_drivers/uhk_module_driver.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/right/src/slave_drivers/uhk_module_driver.c b/right/src/slave_drivers/uhk_module_driver.c index 4cd1099..8eabffb 100644 --- a/right/src/slave_drivers/uhk_module_driver.c +++ b/right/src/slave_drivers/uhk_module_driver.c @@ -12,14 +12,14 @@ uhk_module_state_t UhkModuleStates[UHK_MODULE_MAX_COUNT]; static uhk_module_state_t uhkModuleTargetStates[UHK_MODULE_MAX_COUNT]; static uhk_module_phase_t uhkModulePhases[UHK_MODULE_MAX_COUNT]; -i2c_message_t rxMessage; -i2c_message_t txMessage; +static i2c_message_t rxMessage; +static i2c_message_t txMessage; -status_t tx() { +static status_t tx() { return I2cAsyncWriteMessage(I2C_ADDRESS_LEFT_KEYBOARD_HALF_FIRMWARE, &txMessage); } -status_t rx() { +static status_t rx() { return I2cAsyncReadMessage(I2C_ADDRESS_LEFT_KEYBOARD_HALF_FIRMWARE, &rxMessage); }