Update precision
authorJoseph Coffland <joseph@cauldrondevelopment.com>
Mon, 8 May 2017 21:19:09 +0000 (14:19 -0700)
committerJoseph Coffland <joseph@cauldrondevelopment.com>
Mon, 8 May 2017 21:19:09 +0000 (14:19 -0700)
src/jade/templates/control-view.jade

index 4da12cc948302252766e01a4dfa87acda4a21977..4ed9f153b45d5c7aa9c023a8781d944d036c2104 100644 (file)
@@ -11,8 +11,8 @@ script#control-view-template(type="text/x-template")
       each axis in 'xyzabc'
         tr.axis(class="axis-#{axis}", v-if="enabled('#{axis}')")
           th.name #{axis}
-          td.position {{state.#{axis}p || 0 | fixed 4}}
-          td.offset {{state.#{axis}o || 0 | fixed 4}}
+          td.position {{state.#{axis}p || 0 | fixed 3}}
+          td.offset {{state.#{axis}o || 0 | fixed 3}}
           td.errors
             .fa.fa-hot(v-if="state.#{axis}t", title="Driver overtemp.")
             .fa.fa-ban(v-if="state.#{axis}s", title="Motor stalled.")
@@ -35,11 +35,11 @@ script#control-view-template(type="text/x-template")
         td
       tr
         th Feed
-        td {{state.f || 0}}
+        td {{state.f || 0 | fixed 0}}
         td mm/min
       tr
         th Speed
-        td {{state.s || 0}}
+        td {{state.s || 0 | fixed 0}}
         td RPM
       tr
         th Direction