Actually, on second though, you should add a check to be safe. It’s just:
uint8_t read_value = 0x01;
dct_read_app_data_copy(DCT_SETUP_DONE_OFFSET, &read_value, 1);
if(read_value != 1)
{
const uint8_t write_value = 1;
dct_write_app_data(&write_value, DCT_SETUP_DONE_OFFSET, 1);
}
Then it’s definitely safe to leave in your production firmware. We’ve used that technique.