Skip to content

Commit

Permalink
add b before data string (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
andynoack authored Feb 21, 2022
1 parent 03db43f commit 4e29d70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/urh/plugins/RfCat/RfCatPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def configure_rfcat(self, modulation = "MOD_ASK_OOK", freq = 433920000, sample_r
logger.info("Configured RfCat to Modulation={}, Frequency={} Hz, Datarate={} baud".format(modulation, int(freq), int(sample_rate // samples_per_symbol)))

def send_data(self, data) -> str:
prepared_data = "d.RFxmit({})".format(str(data)[11:-1]) #[11:-1] Removes "bytearray(b...)
prepared_data = "d.RFxmit(b{})".format(str(data)[11:-1]) #[11:-1] Removes "bytearray(b...)
self.set_parameter(prepared_data, log=False)

def __send_messages(self, messages, sample_rates):
Expand Down

1 comment on commit 4e29d70

@atlas0fd00m
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jopohl , is there a way i can make the RfCat integration easier from upstream rflib?

Please sign in to comment.