Using internal read to get Direct Address

This commit is contained in:
Melefo
2020-02-12 14:35:23 +01:00
parent 05052037e5
commit b3789341de
2 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -8,9 +8,9 @@ namespace ComSquare::APU
{
int APU::SET1(uint24_t dp, uint8_t bit)
{
uint8_t data = read(dp);
uint8_t data = this->_internalRead(dp);
write(dp, data | (1u << bit));
this->_internalWrite(dp, data | (1u << bit));
return 4;
}
}