123
Revision 37:5bc5e77d71d2, committed 2022-06-06
- Comitter:
- advxolltm
- Date:
- Mon Jun 06 09:26:05 2022 +0000
- Parent:
- 35:cd54c52c6003
- Commit message:
- 123;
Changed in this revision
sx127x.cpp | Show annotated file Show diff for this revision Revisions of this file |
sx127x_fsk.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r cd54c52c6003 -r 5bc5e77d71d2 sx127x.cpp --- a/sx127x.cpp Sun Nov 25 13:34:04 2018 -0800 +++ b/sx127x.cpp Mon Jun 06 09:26:05 2022 +0000 @@ -61,10 +61,10 @@ /* SX1272 starts in FSK mode on powerup, RegOpMode bit3 will be set for BT1.0 in FSK */ if (!RegOpMode.bits.LongRangeMode) { set_opmode(RF_OPMODE_SLEEP); - wait(0.01); + wait_us(10000); RegOpMode.bits.LongRangeMode = 1; write_reg(REG_OPMODE, RegOpMode.octet); - wait(0.01); + wait_us(10000); RegOpMode.octet = read_reg(REG_OPMODE); } @@ -262,12 +262,12 @@ int in = reset_pin.read(); reset_pin.output(); reset_pin.write(1); - wait(0.05); + wait_us(50000); if (in == 1) { /* pin is pulled up somewhere? */ reset_pin.write(0); - wait(0.005); + wait_us(50000); } reset_pin.input(); - wait(0.005); + wait_us(50000); }
diff -r cd54c52c6003 -r 5bc5e77d71d2 sx127x_fsk.cpp --- a/sx127x_fsk.cpp Sun Nov 25 13:34:04 2018 -0800 +++ b/sx127x_fsk.cpp Mon Jun 06 09:26:05 2022 +0000 @@ -305,7 +305,7 @@ if (m_xcvr.RegOpMode.bits.Mode == RF_OPMODE_RECEIVER) { // was already receiving, restart it m_xcvr.set_opmode(RF_OPMODE_STANDBY); - wait(0.01); + wait_us(10000); } config_dio0_for_pktmode_rx();