From 6c754dff9675db3efa8dabe932cb36f500c321bb Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 22 Jul 2022 13:33:53 +0200 Subject: [PATCH] Fix Mocha_SEEPROMRead --- source/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/utils.cpp b/source/utils.cpp index 53b0e7a..0e1d779 100644 --- a/source/utils.cpp +++ b/source/utils.cpp @@ -212,7 +212,7 @@ MochaUtilsStatus Mocha_ODMGetDiscKey(WUDDiscKey *discKey) { return res; } -extern int bspRead(const char *, uint32_t, const char *, uint32_t, uint16_t *); +extern "C" int bspRead(const char *, uint32_t, const char *, uint32_t, uint16_t *); MochaUtilsStatus Mocha_SEEPROMRead(uint8_t *out_buffer, uint32_t offset, uint32_t size) { if (!mochaInitDone) { return MOCHA_RESULT_LIB_UNINITIALIZED;