Merge pull request #7964 from paul-szczepanek-arm/master

NFC: fix reading from NFC EEPROM
pull/7992/head
Martin Kojtal 2018-09-05 09:50:27 +02:00 committed by GitHub
commit 3057c6c722
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -397,6 +397,7 @@ void NFCEEPROM::continue_read()
_driver->read_bytes(_eeprom_address, ac_buffer_builder_write_position(buffer_builder), _ndef_buffer_read_sz - _eeprom_address);
} else {
// Done, close session
_current_op = nfc_eeprom_read_end_session;
_operation_result = NFC_OK;
_driver->end_session();
}