private boolean checkPattern ( Mtp2Buffer frame , int sltmLen , byte [ ] pattern ) { if ( sltmLen != pattern . length ) { return false ; } for ( int i = 0 ; i < pattern . length ; i ++ ) { if ( frame . frame [ i + PATTERN_OFFSET ] != pattern [ i ] ) { return false ; } } return true ; }
+ 2 becuase frame . len contains 2B for CRC