esp_flash_encrypt_is_write_protected() function
Returns True if the write protection of FLASH_CRYPT_CNT is set
Syntax
bool esp_flash_encrypt_is_write_protected(bool print_error); Arguments
print_error
Print error if it is write protected
Return value
true - if FLASH_CRYPT_CNT is write protected