Fixed issue with RegEdit_ReadReg()
Now have it correctly casting the void * to a uint8_t * before it uses it in the tests.
This commit is contained in:
parent
427a5d1786
commit
cdaa4270d3
|
@ -75,8 +75,11 @@ void RegEdit_SetNum(void *reg, uint8_t num)
|
||||||
|
|
||||||
uint8_t RegEdit_ReadReg(void *reg)
|
uint8_t RegEdit_ReadReg(void *reg)
|
||||||
{
|
{
|
||||||
|
uint8_t value = *(uint8_t *)reg;
|
||||||
|
|
||||||
mock_c()->actualCall("RegEdit_ReadReg")
|
mock_c()->actualCall("RegEdit_ReadReg")
|
||||||
->withPointerParameters("reg", reg)
|
->withPointerParameters("reg", reg)
|
||||||
->returnUnsignedIntValueOrDefault(0);
|
->returnUnsignedIntValueOrDefault(value);
|
||||||
//Return value is mock controlled. So it does actually return a uint8_t
|
|
||||||
|
return value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue