Fixing bug because the last 4 bytes of a flash sector are not used because the packet size is 12 bytes