Skip to content

Commit cdcc498

Browse files
authored
Merge pull request #10 from jerryneedell/jerryn_fix_example
fix rfm69_simpletest for execution on Raspbery Pi
2 parents a38a113 + a74292a commit cdcc498

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/rfm69_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
# This is a limitation of the radio packet size, so if you need to send larger
4242
# amounts of data you will need to break it into smaller send calls. Each send
4343
# call will wait for the previous one to finish before continuing.
44-
rfm69.send('Hello world!\r\n')
44+
rfm69.send(bytes('Hello world!\r\n',"utf-8"))
4545
print('Sent hello world message!')
4646

4747
# Wait to receive packets. Note that this library can't receive data at a fast

0 commit comments

Comments
 (0)