mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Removes statics from hal sim (#825)
Based off of #824, the equivelent in sim.
This commit is contained in:
committed by
Peter Johnson
parent
8bd48d6c34
commit
d2e7a90f41
@@ -13,7 +13,16 @@
|
||||
|
||||
using namespace hal;
|
||||
|
||||
I2CData hal::SimI2CData[2];
|
||||
namespace hal {
|
||||
namespace init {
|
||||
void InitializeI2CData() {
|
||||
static I2CData sid[2];
|
||||
::hal::SimI2CData = sid;
|
||||
}
|
||||
} // namespace init
|
||||
} // namespace hal
|
||||
|
||||
I2CData* hal::SimI2CData;
|
||||
|
||||
void I2CData::ResetData() {
|
||||
m_initialized = false;
|
||||
|
||||
Reference in New Issue
Block a user