When I use the mifare increment and decrement functions of MFBlock I get unexpected results when using an external Omnikey 5321 reader.
e.g. when the card contains the value 0 and I increment with 100 the new value will be 1677721600. When seen as a byteArray this also contains 0x64, but at the wrong place.
The decrement function fails in a similar way.
According to the SDK documents both the increment and the decrement should return the new values, but the increment always returns 0 and the decrement always returns 4.
When I use the simulated mifare card, that writes to a file, the increment and decrement functions work like expected.
Any suggestions how to solve this?