Skip to content

Commit

Permalink
Enable FSK transmission (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhgzhg committed Apr 27, 2021
1 parent db0eea1 commit 4f8b464
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions smtUdpPacketForwarder/Radio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,15 @@ void hexPrint(uint8_t data[], int length, FILE *dest) { // {{{
gain \
); \
} else { \
result = chip->beginFSK( \
downlink_pkt.carrier_frequency_mhz, \
downlink_pkt.fsk_datarate_bps / 1000.0, \
downlink_pkt.fsk_freq_deviation_hz / 1000.0, \
downlink_pkt.bandwidth_khz, \
(int8_t) downlink_pkt.output_power_dbm, \
downlink_pkt.preamble_length, \
false /* don't use OOK */ \
); \
} \
if (result == ERR_NONE) result = chip->setCurrentLimit(current_lim_ma); \
if (result == ERR_NONE) { \
Expand Down

0 comments on commit 4f8b464

Please sign in to comment.