     for power in logMin...logMax {
       var y : GLfloat = 0.25 + 0.5 * GLfloat((Double(power)-bottom)/logRange)
       drawLine((xPos,y), to: (xPos+GLfloat(lgeTickSize), y), width: 1)
-      
-      var nextPow = InversePseudoLog10(Double(power >= 0 ? power+1 : power))
-      let halfPoint = PseudoLog10(nextPow*0.5)
-      y = 0.25 + GLfloat((halfPoint-bottom)/logRange * 0.5)
-      drawLine((xPos,y), to: (xPos+GLfloat(medTickSize), y), width: 1)
-
-      nextPow = InversePseudoLog10(Double(power >= 0 ? power+1 : power))
-      let doubPoint = PseudoLog10(nextPow*0.1*2)
-      y = 0.25 + 0.5 * GLfloat((doubPoint-bottom)/logRange)
-      drawLine((xPos,y), to: (xPos+GLfloat(smlTickSize), y), width: 1)
+
+      
+      if !(power == logMax) {
+        var nextPow = InversePseudoLog10(Double(power >= 0 ? power+1 : power))
+        let halfPoint = PseudoLog10(nextPow*0.5)
+        y = 0.25 + GLfloat((halfPoint-bottom)/logRange * 0.5)
+        drawLine((xPos,y), to: (xPos+GLfloat(medTickSize), y), width: 1)
+
+        nextPow = InversePseudoLog10(Double(power >= 0 ? power+1 : power))
+        let doubPoint = PseudoLog10(nextPow*0.1*2)
+        y = 0.25 + 0.5 * GLfloat((doubPoint-bottom)/logRange)
+        drawLine((xPos,y), to: (xPos+GLfloat(smlTickSize), y), width: 1)
+      }
     }
     // Draw text in a separate pass
     for power in logMin...logMax {

      var txt = NSString(format: "%.0f", abs(InversePseudoLog10(Double(power))))
      drawText(txt as String, align: left ? .Right : .Left, position: (xPos + lgeTickSize * 1.25, y), fontSize: 12)
      
      let nextPow = InversePseudoLog10(Double(power >= 0 ? power+1 : power))
      let halfPoint = PseudoLog10(nextPow*0.5)
      y = 0.25 + GLfloat((halfPoint-bottom)/logRange * 0.5)
      if abs(nextPow) == 1 {
        txt = NSString(format: "%.1f", abs(nextPow*0.5))
      } else {
        txt = NSString(format: "%.0f", abs(nextPow*0.5))
      }
      drawText(txt as String, align: left ? .Right : .Left, position: (xPos + medTickSize * 1.25, y), fontSize: 9)
    }
    
  }

  }
  
  override func glkView(view: GLKView, drawInRect rect: CGRect) {

    if let s = socket {
      if !s.isConnected {
        currentDH += 0.01

        latestData = FlightData()
        
        latestData!.DeltaH = currentDH
