diff --git a/features/nfc/source/nfc/ndef/common/Mime.cpp b/features/nfc/source/nfc/ndef/common/Mime.cpp index eb7907a81a..74e342a9b4 100644 --- a/features/nfc/source/nfc/ndef/common/Mime.cpp +++ b/features/nfc/source/nfc/ndef/common/Mime.cpp @@ -99,13 +99,14 @@ bool Mime::append_as_record( ) const { return message_builder.append_record( - RecordType( - RecordType::media_type, - get_mime_type() - ), - get_mime_content(), - is_last_record - ); + RecordType( + RecordType::media_type, + get_mime_type() + ), + get_mime_content(), + is_last_record + ); +} size_t Mime::get_record_size() const { diff --git a/features/nfc/source/nfc/ndef/common/Text.cpp b/features/nfc/source/nfc/ndef/common/Text.cpp index d66e48f9a6..5a5f5c7880 100644 --- a/features/nfc/source/nfc/ndef/common/Text.cpp +++ b/features/nfc/source/nfc/ndef/common/Text.cpp @@ -125,9 +125,9 @@ Span Text::get_text() const size_t language_code_size = get_language_code().size(); return make_const_Span( - _text_record + header_size + language_code_size, - _text_record_size - header_size - language_code_size - ); + _text_record + header_size + language_code_size, + _text_record_size - header_size - language_code_size + ); } void Text::move_data(uint8_t *text, size_t size)