 (defmulti read-pin*
   "Inner method for reading from a pin; dispatches on pin mode"
   (fn [board pin-n]
-    (get (pcp/current-pin-modes board) pin-n)))
+    (pc/current-pin-modes board) pin-n))
 
 
 ;; In addition to the standard protocol functions, we also need something which let's us set the state of

  (read-value [board pin-n]
    (read-pin* board pin-n))

  pcp/PAinPin
  (read-raw-value [board pin-n]
    (assert (= (current-pin-mode board pin-n) :ain)
            "Only :ain pins have raw values")

;; This stuff really needs to be part of the core library

(def full-available-modes
  #{:input :output :ain :aout :pwm})

(def available-modes
  #{:gpio :ain :aout :pwm})
