Make previousSlaveId and currentSlaveId static.

This commit is contained in:
László Monda
2017-09-29 00:52:43 +02:00
parent 827ad7e08e
commit 1889f78b98

View File

@@ -7,10 +7,11 @@
#include "i2c.h"
#include "i2c_addresses.h"
uint8_t previousSlaveId;
uint8_t currentSlaveId;
uint32_t I2cSchedulerCounter;
static uint8_t previousSlaveId;
static uint8_t currentSlaveId;
uhk_slave_t Slaves[] = {
{ .init = UhkModuleSlaveDriver_Init, .update = UhkModuleSlaveDriver_Update, .perDriverId = UhkModuleDriverId_LeftKeyboardHalf },
{ .init = UhkModuleSlaveDriver_Init, .update = UhkModuleSlaveDriver_Update, .perDriverId = UhkModuleDriverId_LeftAddon },