diff --git a/mocks/MockRegEdit/MockRegEdit.c b/mocks/MockRegEdit/MockRegEdit.c index a02450e..52c5402 100644 --- a/mocks/MockRegEdit/MockRegEdit.c +++ b/mocks/MockRegEdit/MockRegEdit.c @@ -75,7 +75,7 @@ void RegEdit_SetNum(void *reg, uint8_t num) uint8_t RegEdit_ReadReg(void *reg) { - mock_c()->actualCall("RegEdit_ReadReg") + return mock_c()->actualCall("RegEdit_ReadReg") ->withPointerParameters("reg", reg) ->returnUnsignedIntValueOrDefault(0); //Return value is mock controlled. So it does actually return a uint8_t