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 value = *(uint8_t *)reg;
|
||||
|
||||
mock_c()->actualCall("RegEdit_ReadReg")
|
||||
->withPointerParameters("reg", reg)
|
||||
->returnUnsignedIntValueOrDefault(0);
|
||||
//Return value is mock controlled. So it does actually return a uint8_t
|
||||
->returnUnsignedIntValueOrDefault(value);
|
||||
|
||||
return value;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue