x86: advance_func now stored in mraa_board_t instance
Signed-off-by: Henry Bruce <henry.bruce@intel.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Brendan Le Foll
parent
d5e5539be3
commit
5740e46ae0
@@ -104,6 +104,9 @@ mraa_init()
|
||||
#if defined(X86PLAT)
|
||||
// Use runtime x86 platform detection
|
||||
platform_type = mraa_x86_platform();
|
||||
// x86 platforms have advanced_func stable in board config structure
|
||||
free(advance_func);
|
||||
advance_func = plat->adv_func;
|
||||
#elif defined(ARMPLAT)
|
||||
// Use runtime ARM platform detection
|
||||
platform_type = mraa_arm_platform();
|
||||
|
||||
Reference in New Issue
Block a user