mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
prodtest: style
This commit is contained in:
parent
3851404d04
commit
836508657d
@ -247,7 +247,7 @@ static void test_otp_write(const char *args)
|
|||||||
{
|
{
|
||||||
char data[32];
|
char data[32];
|
||||||
memset(data, 0, sizeof(data));
|
memset(data, 0, sizeof(data));
|
||||||
strncpy(data, args, 31);
|
strncpy(data, args, sizeof(data) - 1);
|
||||||
flash_otp_write(0, 0, (const uint8_t *) data, sizeof(data));
|
flash_otp_write(0, 0, (const uint8_t *) data, sizeof(data));
|
||||||
flash_otp_lock(0);
|
flash_otp_lock(0);
|
||||||
vcp_printf("OK");
|
vcp_printf("OK");
|
||||||
|
Loading…
Reference in New Issue
Block a user