Skip to content

Commit

Permalink
Add docstring for the new function
Browse files Browse the repository at this point in the history
  • Loading branch information
elvis-epx authored and lrq3000 committed Jul 14, 2023
1 parent be24e92 commit a0f73ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/reedsolo/reedsolo.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ def rs_encode_msg(msg_in, nsym, fcr=0, generator=2, gen=None):
################### REED-SOLOMON DECODING ###################

def inverted(msg):
'''Implements msg[::-1] explicitly to make the library compatible with MicroPython which does not support stepped slices.'''
return list(reversed(msg))

def rs_calc_syndromes(msg, nsym, fcr=0, generator=2):
Expand Down

0 comments on commit a0f73ca

Please sign in to comment.