Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
RBhupi committed Aug 19, 2024
1 parent 72dacd7 commit 6c141ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/MobotixScan.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def scan_presets(args):
for move_pos in presets:
meta = {'position': str(move_pos), 'loop_num': str(loops)}
if args.mode == 'direction':
direction = str(args.direction[str(move_pos)])
direction = str(args.directions[str(move_pos)])
meta['direction'] = direction

if presets[0]!=0:
Expand Down
4 changes: 2 additions & 2 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ def main(args):
sys.exit("Exit error while scanning custom: Unknown_Timeout")
elif args.mode == 'direction':
try:
directions_clean = args.presets.replace(' ', '')
directions_clean = args.preset.replace(' ', '')
directions_list = directions_clean.split(',')

args.preset=calculate_pt(args.south, args.preset)
presets_list = args.presets.split(',')
presets_list = args.preset.split(',')
args.directions = dict(zip(presets_list, directions_list))

logging.info(args.preset)
Expand Down

0 comments on commit 6c141ff

Please sign in to comment.