Skip to content

Commit cad5146

Browse files
committed
Documentation improvements
1 parent 87aede8 commit cad5146

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ The examples in this library (apart from the compliance sketch) are somewhat pri
120120

121121
Although the wrappers in this library are designed to make the LMIC useful in the Arduino environment, the maintainers have tried to be careful to keep the core LMIC code generally useful. For example, I use this library without modification (but with wrappers) on a RISC-V platform in a non-Arduino environment.
122122

123-
124123
## Installing
125124

126125
To install this library:
@@ -854,8 +853,7 @@ The library observes and processes rising edges on the pins as part of `os_runlo
854853
This can be configured in one of two ways (see
855854
[Controlling use of interrupts](#controlling-use-of-interrupts)). See [Interrupts and Arduino system timing](#interrupts-and-arduino-system-timing) for implementation details.
856855
857-
By default, the library
858-
polls the enabled pins to determine whether an event has occurred. This approach
856+
By default, the library polls the enabled pins to determine whether an event has occurred. This approach
859857
allows use of any CPU pin to sense the DIOs, and makes no assumptions about
860858
interrupts. However, it means that the end-of-transmit event is not observed
861859
(and time-stamped) until `os_runloop_once()` is called.

src/lmic/lmic.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,9 @@ applyAdrRequests(
764764
p4 = opts[oidx+4]; // ChMaskCtl, NbTrans
765765
u1_t chpage = p4 & MCMD_LinkADRReq_Redundancy_ChMaskCntl_MASK; // channel page
766766

767+
// notice that we ignore map_ok except on the last setting.
768+
// so LMICbandplan_mapChannels should report failure status, but do
769+
// the work; if it fails, we'll back it out.
767770
map_ok = LMICbandplan_mapChannels(chpage, chmap);
768771
LMICOS_logEventUint32("applyAdrRequests: mapChannels", ((u4_t)chpage << 16)|(chmap << 0));
769772
}

src/lmic/lmic_us_like.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ bit_t LMICuslike_canMapChannels(u1_t chpage, u2_t chmap) {
9999
|| channel map appllies to 500kHz (ch 64..71) and in addition
100100
|| all channels 0..63 are turned off or on. MCMC_LADR_CHP_BANK
101101
|| is also special, in that it enables subbands.
102+
||
103+
|| TODO([email protected]) revise the 0xFF00 mask for regions with other than
104+
|| eight 500 kHz channels.
102105
*/
103106
if (chpage < MCMD_LinkADRReq_ChMaskCntl_USLIKE_SPECIAL) {
104107
// operate on channels 0..15, 16..31, 32..47, 48..63, 64..71

0 commit comments

Comments
 (0)