mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-13 10:09:30 +00:00
Fix device locking in grid item selection callback (#3044)
This commit is contained in:
@@ -132,8 +132,8 @@ namespace ui {
|
|||||||
|
|
||||||
gridItem.on_select = [&nav, appInfo, i]() {
|
gridItem.on_select = [&nav, appInfo, i]() {
|
||||||
auto dev2 = (i2cdev::I2cDev_PPmod*)i2cdev::I2CDevManager::get_dev_by_model(I2C_DEVMDL::I2CDECMDL_PPMOD);
|
auto dev2 = (i2cdev::I2cDev_PPmod*)i2cdev::I2CDevManager::get_dev_by_model(I2C_DEVMDL::I2CDECMDL_PPMOD);
|
||||||
dev2->lockDevice();
|
|
||||||
if (dev2) {
|
if (dev2) {
|
||||||
|
dev2->lockDevice();
|
||||||
// auto app_image = reinterpret_cast<uint8_t*>(portapack::memory::map::m4_code.end() - appInfo->binary_size);
|
// auto app_image = reinterpret_cast<uint8_t*>(portapack::memory::map::m4_code.end() - appInfo->binary_size);
|
||||||
auto app_image = reinterpret_cast<uint8_t*>(portapack::memory::map::local_sram_0.base());
|
auto app_image = reinterpret_cast<uint8_t*>(portapack::memory::map::local_sram_0.base());
|
||||||
uint8_t errorcnt = 0;
|
uint8_t errorcnt = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user