Simplify I2C and SPI code (#237)
This commit is contained in:
committed by
GitHub
parent
b85ef7a2e7
commit
83a82be901
@@ -40,7 +40,7 @@ static void show(lv_obj_t* parent, const hal::i2c::Configuration& configuration)
|
||||
|
||||
// On-off switch
|
||||
|
||||
if (configuration.canReinit) {
|
||||
if (configuration.isMutable) {
|
||||
auto* state_switch = lv_switch_create(card);
|
||||
lv_obj_align(state_switch, LV_ALIGN_TOP_RIGHT, 0, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user