fix(pa01): battery charge animations not being shown (#6793)
Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
struct stm32_i2c_device {
|
struct stm32_i2c_device {
|
||||||
I2C_HandleTypeDef handle;
|
I2C_HandleTypeDef handle;
|
||||||
const stm32_i2c_hw_def_t* hw_def;
|
const stm32_i2c_hw_def_t* hw_def;
|
||||||
#if !defined(BOOT)
|
#if !defined(BOOT) && !defined(RADIO_PA01)
|
||||||
mutex_handle_t mutex;
|
mutex_handle_t mutex;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
@@ -54,7 +54,7 @@ static I2C_HandleTypeDef* i2c_get_handle(uint8_t bus)
|
|||||||
return &_i2c_devs[bus].handle;
|
return &_i2c_devs[bus].handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(BOOT)
|
#if !defined(BOOT) && !defined(RADIO_PA01)
|
||||||
#define I2CMutex(bus) MutexLock mutexLock = MutexLock::MakeInstance(&i2c_get_device(bus)->mutex)
|
#define I2CMutex(bus) MutexLock mutexLock = MutexLock::MakeInstance(&i2c_get_device(bus)->mutex)
|
||||||
#else
|
#else
|
||||||
#define I2CMutex(bus)
|
#define I2CMutex(bus)
|
||||||
@@ -525,7 +525,7 @@ int stm32_i2c_init(uint8_t bus, uint32_t clock_rate, const stm32_i2c_hw_def_t* h
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(BOOT)
|
#if !defined(BOOT) && !defined(RADIO_PA01)
|
||||||
mutex_create(&dev->mutex);
|
mutex_create(&dev->mutex);
|
||||||
#endif
|
#endif
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user