diff clojure/com/aurellem/vbm.clj @ 70:ff6f1acae59e

removed zero frame confusion
author Robert McIntyre <rlm@mit.edu>
date Thu, 08 Mar 2012 02:25:20 -0600
parents 86093f2ce7d1
children 39928bf4622d
line wrap: on
line diff
     1.1 --- a/clojure/com/aurellem/vbm.clj	Thu Mar 08 02:12:49 2012 -0600
     1.2 +++ b/clojure/com/aurellem/vbm.clj	Thu Mar 08 02:25:20 2012 -0600
     1.3 @@ -43,11 +43,10 @@
     1.4  (def vbm-header-length 255)
     1.5  
     1.6  (defn repair-vbm
     1.7 -  "Two 0's must be inserted after every reset, and the first
     1.8 -   button must be dropped"
     1.9 +  "Two 0's must be inserted after every reset."
    1.10    [vbm-seq]
    1.11    (loop [fixed []
    1.12 -         pending (next vbm-seq)]
    1.13 +         pending vbm-seq]
    1.14      (if (empty? pending) fixed
    1.15          (let [mask (first pending)]
    1.16            (if (not= 0x0000 (bit-and mask (button-mask :reset)))