changeset 17:b04dea5f71a3

process_data() uses step() now.
author Brian Neal <bgneal@gmail.com>
date Sat, 07 Jul 2012 15:03:39 -0500
parents 280facb82b80
children aa7a4298d609
files enigma/machine.h
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/enigma/machine.h	Sat Jul 07 11:42:31 2012 -0500
+++ b/enigma/machine.h	Sat Jul 07 15:03:39 2012 -0500
@@ -200,8 +200,7 @@
       {
          for (std::size_t i = 0; i < n; ++i)
          {
-            step_rotors();
-            *output++ = electric_signal(*input++) + 'A';
+            *output++ = step(*input++) + 'A';
          }
       }