Skip to content

Commit

Permalink
Improve Efficiency
Browse files Browse the repository at this point in the history
  • Loading branch information
Otake authored and Otake committed Jan 29, 2019
1 parent 096c424 commit e974b5e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public int getBlocks(boolean wait, int sigmap, int maxBlocks) {
pixy.sendPacket();
if (pixy.receivePacket() == 0) {
if (pixy.type == CCC_RESPONSE_BLOCKS) {
blocks = new ArrayList<Block>();
blocks.clear();
for (int i = 0; i + 13 < pixy.length; i += 14) {
Block b = new Block(((pixy.buffer[i + 1] & 0xff) << 8) | (pixy.buffer[i] & 0xff),
((pixy.buffer[i + 3] & 0xff) << 8) | (pixy.buffer[i + 2] & 0xff),
Expand Down

0 comments on commit e974b5e

Please sign in to comment.