returning the actual value from the mock.

This commit is contained in:
jakeg00dwin 2024-10-18 21:42:29 -07:00
parent 156dfb6e09
commit b9e85d3719
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ void RegEdit_SetNum(void *reg, uint8_t num)
uint8_t RegEdit_ReadReg(void *reg) uint8_t RegEdit_ReadReg(void *reg)
{ {
mock_c()->actualCall("RegEdit_ReadReg") return mock_c()->actualCall("RegEdit_ReadReg")
->withPointerParameters("reg", reg) ->withPointerParameters("reg", reg)
->returnUnsignedIntValueOrDefault(0); ->returnUnsignedIntValueOrDefault(0);
//Return value is mock controlled. So it does actually return a uint8_t //Return value is mock controlled. So it does actually return a uint8_t