leave a ToDo note for the mackie surface
[ardour.git] / libs / surfaces / mackie / fader.cc
index 46e46cf797d97146eee063f3625ca4e3aea2d028..33e1e4c29faf34d8df107f56b57073c6c0d4da79 100644 (file)
@@ -60,6 +60,13 @@ Fader::update_message ()
        }
 
        int posi = lrintf (16384.0 * position);
+
+       if (posi == last_update_position) {
+               return MidiByteArray();
+       }
+
+       last_update_position = posi;
+
        DEBUG_TRACE (DEBUG::MackieControl, string_compose ("generate fader message for position %1 (%2)\n", position, posi));
        return MidiByteArray  (3, 0xe0 + id(), posi & 0x7f, posi >> 7);
 }