Skip to content

Commit 15934d0

Browse files
committed
fixup! feat(core/prodtest): implement tropic prodtest
1 parent 695cd1a commit 15934d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/embed/projects/prodtest/cmd/prodtest_tropic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ static lt_ret_t data_write(lt_handle_t* h, uint16_t first_slot,
13551355
}
13561356

13571357
static lt_ret_t data_read(lt_handle_t* h, uint16_t first_slot,
1358-
uint16_t slots_count, const uint8_t* data,
1358+
uint16_t slots_count, uint8_t* data,
13591359
size_t max_data_length, size_t* data_length) {
13601360
const uint16_t last_data_slot = first_slot + slots_count - 1;
13611361
if (slots_count == 0 || last_data_slot > R_MEM_DATA_SLOT_MAX) {

core/embed/sec/tropic/stm32/tropic01.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ lt_ret_t lt_port_delay(lt_handle_t *h, uint32_t ms) {
186186
}
187187

188188
lt_ret_t lt_port_random_bytes(void *buff, size_t count) {
189-
random_buffer((uint8_t *)buff, len);
189+
random_buffer((uint8_t *)buff, count);
190190

191191
return LT_OK;
192192
}

0 commit comments

Comments
 (0)