@@ -1,3 +1,4 | |||
|
1 | import sys | |
|
1 | 2 | import numpy |
|
2 | 3 | |
|
3 | 4 | from jroproc_base import ProcessingUnit, Operation |
@@ -646,6 +647,10 class Decoder(Operation): | |||
|
646 | 647 | self.setup(code, osamp, dataOut) |
|
647 | 648 | |
|
648 | 649 | self.isConfig = True |
|
650 | ||
|
651 | if mode == 3: | |
|
652 | sys.stderr.write("Decoder Warning: mode=%d is not valid, using mode=0\n" %mode) | |
|
653 | ||
|
649 | 654 | |
|
650 | 655 | if self.code is None: |
|
651 | 656 | print "Fail decoding: Code is not defined." |
@@ -658,7 +663,6 class Decoder(Operation): | |||
|
658 | 663 | Decoding when data have been read as block, |
|
659 | 664 | """ |
|
660 | 665 | if mode == 3: |
|
661 | sys.stderr.write("Decoder Warning: mode=%d is not valid, using mode=0\n" %mode) | |
|
662 | 666 | mode = 0 |
|
663 | 667 | |
|
664 | 668 | if mode == 0: |
General Comments 0
You need to be logged in to leave comments.
Login now