Skip to content

Commit

Permalink
update for comp
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-goddard committed Jun 17, 2024
1 parent 96166c0 commit 85017eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace constants {
constexpr uint16_t main_deploy_wait = 160; // cycles
constexpr uint16_t main_log_shutoff = 30000; // cycles

constexpr float frequency = 915; // MHz
constexpr float frequency = 922.2; // MHz
constexpr float bandwidth = 125; // kHz
constexpr uint8_t sf = 7; // Between 7 and 12
constexpr uint8_t cr = 8; // Between 5 and 8. 4/8 coding ratio - one redundancy bit for every data bit
Expand Down
4 changes: 2 additions & 2 deletions src/rfm/rfm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ bool RFM::transmit() {

#ifdef VERBOSE
printf("Transmitting: ");
for (uint i = 0; i < constants::packet_size; i++) {
printf("%c", packet[i]);
for (uint i = 0; i < constants::packet_size; ++i) {
printf("%08b", packet[i]);
}
printf("\n");
#endif
Expand Down

0 comments on commit 85017eb

Please sign in to comment.