Various improvements (#88)
This commit is contained in:
committed by
GitHub
parent
76c14a5f47
commit
8fc653fa51
@@ -1,7 +1,7 @@
|
||||
#include "Hal/Hal_i.h"
|
||||
#include "Hal/I2c/I2c.h"
|
||||
|
||||
#define TAG "hardware"
|
||||
#define TAG "hal"
|
||||
|
||||
namespace tt::hal {
|
||||
|
||||
@@ -24,8 +24,10 @@ void init(const Configuration& configuration) {
|
||||
}
|
||||
}
|
||||
|
||||
tt_check(configuration.initLvgl, "Graphics init not set");
|
||||
tt_check(configuration.initLvgl(), "Graphics init failed");
|
||||
if (configuration.initLvgl != nullptr) {
|
||||
TT_LOG_I(TAG, "Init LVGL");
|
||||
tt_check(configuration.initLvgl(), "LVGL init failed");
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user