Fix compiler error a label can only be part of a statement and a declaration is not a statement

This commit is contained in:
Benjamin Moeller
2026-02-02 17:00:21 +01:00
parent eeaca1604f
commit 54b302356a
@@ -704,7 +704,7 @@ static bool check_ro_lock_on_page(int block_num) {
switch (m_tag_type) {
case TAG_TYPE_NTAG_213:
case TAG_TYPE_NTAG_215:
case TAG_TYPE_NTAG_216:
case TAG_TYPE_NTAG_216: ;
// pages can be locked or not independant of BL bits
//the BL bits only freezes the lock bytes !
uint16_t lock_bits = *(uint16_t *)&m_tag_information->memory[2][2];
@@ -851,7 +851,7 @@ static int handle_write_command(uint8_t block_num, uint8_t *p_data) {
switch (m_tag_type) {
case TAG_TYPE_NTAG_213:
case TAG_TYPE_NTAG_215:
case TAG_TYPE_NTAG_216:
case TAG_TYPE_NTAG_216: ;
int first_cfg_page = get_first_cfg_page_by_tag_type(m_tag_type);
uint8_t cfglck = m_tag_information->memory[first_cfg_page][0] & 0x40;
// For NTAG cards we need to check CFGLCK bit for config pages