fix issues when working with the DMA buffer on the timmer ISR

Signed-off-by: Joseph A. Lutz <joseph.lutz@novatechweb.com>