The write functions don't write to the correct address.
Steps to reproduce:
- Do a "search one" that returns a result (something like "Found result at [address]!" will be logged).
- Do a "write" command with the intent to write at the result address logged in step 1.
- Observe that the bytes are actually written to a completely different address ("Writing [bytes] to [different address than step 1]" will be logged).
In looking at the code, it appears the writes are going to the address of the out array instead of the first address in the array, so I suppose changing the parameter sent to the write method to out[0] would make it work as intended.
It would be even better if the write command took an address as input though, so you don't have to do a search first to set the target address for the write.
The write functions don't write to the correct address.
Steps to reproduce:
In looking at the code, it appears the writes are going to the address of the
outarray instead of the first address in the array, so I suppose changing the parameter sent to the write method toout[0]would make it work as intended.It would be even better if the write command took an address as input though, so you don't have to do a search first to set the target address for the write.