From b9e85d3719867097ebc03c23dd0a935d5d5c4a2c Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Fri, 18 Oct 2024 21:42:29 -0700 Subject: [PATCH] returning the actual value from the mock. --- mocks/MockRegEdit/MockRegEdit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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