Skip to content

Commit

Permalink
fix: missing variables
Browse files Browse the repository at this point in the history
  • Loading branch information
darlanalves committed Feb 21, 2024
1 parent 7485842 commit 0111747
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/include/vm_instructions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -461,10 +461,10 @@ void MOVE_TO_FLASH vm_ioWrite(Program *p)
void MOVE_TO_FLASH vm_ioRead(Program *p)
{
auto target = _readValue(p);
auto pin = _readValue(p).fromPin();
auto value = _readValue(p).fromPin();

_updateSlotWithInteger(p, target.toByte(), (uint)pinValue);
_printf(p, "io read %d, %d\n", pin, pinValue);
_updateSlotWithInteger(p, target.toByte(), (uint)value);
_printf(p, "io read %d, %d\n", target.toByte(), (uint)value);
}

void MOVE_TO_FLASH vm_ioAllOut(Program *p)
Expand Down

0 comments on commit 0111747

Please sign in to comment.