+static uint64_t getJablontronCardId( uint64_t rawcode ){
+ uint64_t id = 0;
+ uint8_t bytes[] = {0,0,0,0,0};
+ num_to_bytes(rawcode, 5, bytes);
+ for ( int i = 4, j = 0; i > -1; --i, j += 2 ) {
+ id += NIBBLE_LOW( bytes[i] ) * (int)pow(10,j);
+ id += NIBBLE_HIGH( bytes[i] ) * (int)pow(10,j+1);
+ }
+ return id;
+}
+