videomixer: fix stray DMA detection
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sat, 16 Nov 2013 12:53:38 +0000 (13:53 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sat, 16 Nov 2013 12:53:38 +0000 (13:53 +0100)
software/videomixer/dvisamplerX.c

index 49c71b1cc351d4ca2474afc2c7a207e2ebaab256..48e2b33ca39d436238231df7d44e0410ae9c6b7b 100644 (file)
@@ -30,10 +30,10 @@ void dvisamplerX_isr(void)
        address_min = (unsigned int)dvisamplerX_framebuffers & 0x0fffffff;
        address_max = address_min + sizeof(dvisamplerX_framebuffers);
        if((dvisamplerX_dma_slot0_status_read() == DVISAMPLER_SLOT_PENDING)
-               && ((dvisamplerX_dma_slot0_address_read() < address_min) || (dvisamplerX_dma_slot0_address_read() >= address_max)))
+               && ((dvisamplerX_dma_slot0_address_read() < address_min) || (dvisamplerX_dma_slot0_address_read() > address_max)))
                printf("dvisamplerX: slot0: stray DMA\n");
        if((dvisamplerX_dma_slot1_status_read() == DVISAMPLER_SLOT_PENDING)
-               && ((dvisamplerX_dma_slot1_address_read() < address_min) || (dvisamplerX_dma_slot1_address_read() >= address_max)))
+               && ((dvisamplerX_dma_slot1_address_read() < address_min) || (dvisamplerX_dma_slot1_address_read() > address_max)))
                printf("dvisamplerX: slot1: stray DMA\n");
 
        if((dvisamplerX_resdetection_hres_read() != dvisamplerX_hres)