Browse Source

Fix setting syncperiod

Eric Helgeson 4 years ago
parent
commit
7c4a1b3c9f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/BlueSCSI.cpp

+ 1 - 1
src/BlueSCSI.cpp

@@ -1207,7 +1207,7 @@ void loop()
         // Transfer period factor(50 x 4 = Limited to 200ns)
         // Transfer period factor(50 x 4 = Limited to 200ns)
         syncperiod = m_msb[i + 3];
         syncperiod = m_msb[i + 3];
         if (syncperiod > 50) {
         if (syncperiod > 50) {
-          syncoffset = 50;
+          syncperiod = 50;
         }
         }
         // REQ/ACK offset(Limited to 16)
         // REQ/ACK offset(Limited to 16)
         syncoffset = m_msb[i + 4];
         syncoffset = m_msb[i + 4];