diff --git a/libfprint/drivers/aesx660.c b/libfprint/drivers/aesx660.c index d030d0e..6f35720 100644 --- a/libfprint/drivers/aesx660.c +++ b/libfprint/drivers/aesx660.c @@ -355,7 +355,7 @@ static void capture_read_stripe_data_cb(struct libusb_transfer *transfer) if (aesdev->buffer_size == aesdev->buffer_max) { if (aesdev->buffer_max == AESX660_HEADER_SIZE) { aesdev->buffer_max = aesdev->buffer[AESX660_RESPONSE_SIZE_LSB_OFFSET] + - (aesdev->buffer[AESX660_RESPONSE_SIZE_MSB_OFFSEt] << 8) + AESX660_HEADER_SIZE; + (aesdev->buffer[AESX660_RESPONSE_SIZE_MSB_OFFSET] << 8) + AESX660_HEADER_SIZE; fp_dbg("Got frame, type %.2x size %.4x", aesdev->buffer[AESX660_RESPONSE_TYPE_OFFSET], aesdev->buffer_max); diff --git a/libfprint/drivers/aesx660.h b/libfprint/drivers/aesx660.h index b53ad51..e354538 100644 --- a/libfprint/drivers/aesx660.h +++ b/libfprint/drivers/aesx660.h @@ -23,7 +23,7 @@ #define AESX660_HEADER_SIZE 3 #define AESX660_RESPONSE_TYPE_OFFSET 0x00 #define AESX660_RESPONSE_SIZE_LSB_OFFSET 0x01 -#define AESX660_RESPONSE_SIZE_MSB_OFFSEt 0x02 +#define AESX660_RESPONSE_SIZE_MSB_OFFSET 0x02 #define AESX660_CALIBRATE_RESPONSE 0x06 #define AESX660_FINGER_DET_RESPONSE 0x40