From 2ff36578289eba75778d0e3ecd3ded1d50599e57 Mon Sep 17 00:00:00 2001 From: bobbyl1066 <45257169+bobbyl1066@users.noreply.github.com> Date: Mon, 26 Nov 2018 16:09:39 +0000 Subject: [PATCH] Packet Driver : Corrected Coding error bitticks holds the value of how many ticks represent 1 bit. used to adjust the driver to work with different clock frequencies. --- spin/packet_driver.spin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spin/packet_driver.spin b/spin/packet_driver.spin index d06725d..e5e26d7 100644 --- a/spin/packet_driver.spin +++ b/spin/packet_driver.spin @@ -75,7 +75,7 @@ PUB startx(mbox, rxpin, txpin, mode, baudrate, rxsiz, txsiz, buffs) : okay stopx(mbox) ' compute the ticks per bit from the baudrate - baudrate := clkfreq / baudrate + bitticks := clkfreq / baudrate ' start the driver cog okay := long[mbox][4] := cognew(@entry, @mbox) + 1