Skip to content

Commit

Permalink
Fixed Makefile to correctly make bin directory. Fixed usb-flash.py to…
Browse files Browse the repository at this point in the history
… throw permission exceptions instead of failing silently. Per #2.
  • Loading branch information
marcnewlin committed Feb 25, 2016
1 parent fa124a0 commit cdcd730
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ VPATH = src/

OBJS = main.rel usb.rel usb_desc.rel radio.rel

all: dongle.bin
all: bin/ dongle.bin

dongle.bin: $(OBJS)
$(SDCC) $(LDFLAGS) $(OBJS:%=bin/%) -o bin/dongle.ihx
Expand Down
4 changes: 2 additions & 2 deletions prog/usb-flasher/usb-flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
try:
dongle = usb.core.find(idVendor=0x1915, idProduct=product_id)
dongle.set_configuration()
except:
except AttributeError:
continue

# Device found, instruct it to jump to the Nordic bootloader
Expand All @@ -81,7 +81,7 @@
dongle = usb.core.find(idVendor=0x1915, idProduct=0x0101)
dongle.set_configuration()
break
except:
except AttributeError:
continue

# Verify that we found a compatible device
Expand Down

0 comments on commit cdcd730

Please sign in to comment.