diff options
Diffstat (limited to 'src/operations.c')
-rw-r--r-- | src/operations.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/operations.c b/src/operations.c index 85d1e3d..59bf212 100644 --- a/src/operations.c +++ b/src/operations.c @@ -180,7 +180,7 @@ int dev_flash_image(struct device_info * dev, struct image * image) { usb_switch_to_update(dev->usb); return -EAGAIN; } else if ( protocol == FLASH_MKII ) { - if ( dev->usb->data & (1 << image->type) ) + if ( dev->usb->data & (1UL << image->type) ) return mkii_flash_image(dev->usb, image); } |