fix ternary expression so DMA transfers work again
fix ternary expression so DMA transfers work again

joncampbell123/doslib,joncampbell123/doslib,joncampbell123/doslib,joncampbell123/doslib,joncampbell123/doslib,joncampbell123/doslib