Skip to content

Commit

Permalink
Merge pull request #977 from pguyot/w49/fix-i2c-crash
Browse files Browse the repository at this point in the history
Fix a crash related to i2c close
  • Loading branch information
fadushin authored Dec 9, 2023
2 parents 5b144a5 + ec1401c commit ea85302
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/platforms/esp32/components/avm_builtins/i2c_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ static void i2c_driver_close(Context *ctx)
ESP_LOGW(TAG, "Failed to delete I2C driver. err=%i", err);
}
free(ctx->platform_data);
ctx->platform_data = NULL;
}

static term i2cdriver_begin_transmission(Context *ctx, term pid, term req)
Expand Down

0 comments on commit ea85302

Please sign in to comment.