This commit is contained in:
RogueMaster
2022-10-30 22:58:30 -04:00
parent 7ada94a91e
commit 971740a45c
2 changed files with 12 additions and 12 deletions
@@ -112,13 +112,13 @@ void gpio_i2c_scanner_set_ok_callback(
furi_assert(callback);
with_view_model(
gpio_i2c_scanner->view,
GpioI2CScannerModel * model,
{
GpioI2CScannerModel * model,
{
UNUSED(model);
gpio_i2c_scanner->callback = callback;
gpio_i2c_scanner->context = context;
},
false);
false);
}
void gpio_i2c_scanner_update_state(GpioI2CScanner* instance, I2CScannerState* st) {
@@ -127,13 +127,13 @@ void gpio_i2c_scanner_update_state(GpioI2CScanner* instance, I2CScannerState* st
with_view_model(
instance->view,
GpioI2CScannerModel * model,
{
GpioI2CScannerModel * model,
{
model->items = st->items;
for(int i = 0; i < model->items; i++) {
model->responding_address[i] = st->responding_address[i];
}
},
true);
true);
}
+6 -6
View File
@@ -118,13 +118,13 @@ void gpio_i2c_sfp_set_ok_callback(
furi_assert(callback);
with_view_model(
gpio_i2c_sfp->view,
GpioI2CSfpModel * model,
{
GpioI2CSfpModel * model,
{
UNUSED(model);
gpio_i2c_sfp->callback = callback;
gpio_i2c_sfp->context = context;
},
false);
false);
}
void gpio_i2c_sfp_update_state(GpioI2CSfp* instance, I2CSfpState* st) {
@@ -133,8 +133,8 @@ void gpio_i2c_sfp_update_state(GpioI2CSfp* instance, I2CSfpState* st) {
with_view_model(
instance->view,
GpioI2CSfpModel * model,
{
GpioI2CSfpModel * model,
{
// Insert values into model...
strcpy(model->vendor, st->vendor);
strcpy(model->pn, st->pn);
@@ -145,5 +145,5 @@ void gpio_i2c_sfp_update_state(GpioI2CSfp* instance, I2CSfpState* st) {
model->sm_reach = st->sm_reach;
model->mm_reach_om3 = st->mm_reach_om3;
},
true);
true);
}