Commit 0b0af7b
tests: benchmarks: current_consumption: rram_write: Fix address check
Test writes data to the TEST_AREA in chunks of BUF_SIZE bytes.
Currently, test checks whether the beginning of the chunk
is within the TEST_AREA. This does not guarantee that the last
chunk fits completely.
Fix address checking. Check whether the entire chunk fits
within the TEST_AREA.
Signed-off-by: Sebastian Głąb <[email protected]>1 parent 59e2b14 commit 0b0af7b
1 file changed
+3
-2
lines changedLines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | | - | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
80 | | - | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
0 commit comments