mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-24 07:52:44 +08:00
Each default driver instantiation emits the same allocation and initialization failure handling. Share that code outside the template while keeping init() resolved on the concrete driver. Allocation failures are now logged under SPI_I2C. Extracted from Balduin (mbjd) in PX4/PX4-Autopilot#27816, commit 8a2391730f8fd9e1bf8f1b112ac4353904647ade. Assisted-by: Codex Signed-off-by: Jacob Dahl <dahl.jakejacob@gmail.com> Co-authored-by: Balduin <balduin@auterion.com>