setHeaderMagic

open fun setHeaderMagic(magic: Int)

Sets a custom magic number for the current McuBoot image header.

Call this before starting the SMP OTA upgrade if the target device uses a non-standard header magic value.

Parameters

magic

The expected 32-bit header magic number.