simfilesystem: correct sw2 response for binary read
PATCH 1/1 simfilesystem: correct sw2 response for binary read
according to spec, sw2 should be the number of bytes read, which is just length.
--- src/simfilesystem.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
src/simfilesystem.cpp +1 -1
@@ -226,7 +226,7 @@ void SimFileSystem::crsm( const QString& args ) sw2 = 0x02; } else if ( length ) { sw1 = 0x9f; - sw2 = length - offset; + sw2 = length; response = QAtUtils::toHex( contents.mid( offset, length ) ); } else {
Signature · 1 line
1.7.2.1
Hi Kristen,
Quoted 3 lines · Kristen Carlson Accardi
according to spec, sw2 should be the number of bytes read, which is just length.
---
Patch has been applied, thanks.
Regards,
-Denis