Use the static keyword wherever it's valid inside of uhk_module_driver.c

This commit is contained in:
László Monda
2017-09-28 02:26:56 +02:00
parent 5473c102ec
commit 41c2556386

View File

@@ -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);
}