Cancel the message in flight, and the small things from the review
rb9704_cancel() and `rb9704 cancel` ask the modem to abandon the MO in flight; the modem's final status reaches mo_done as -ECANCELED. The library's async path has no timeout, so this is how an application frees a modem that has gone quiet mid-send. The status snapshot carries the in-flight message's id and start time for the application to decide with. rb9704_begin zeroes moQueuedMessages: rbBegin empties the queue but not the count, and a count above zero makes every later send queue without transmitting. The fake modem's mo-hold and mo-release stand in for a modem that has taken a message and said nothing more; a test drives cancel through it. Also: the shell's send buffer is a shell line, not a fourth message buffer; the bridge's TX-disable race has a comment; the CLI turns a Cloudloop error (a bad token's 200 reply included), an unopenable port and a one-word jspr line into one line and exit 1; conftest reads request.node; pyproject uses the current license spelling.
This commit is contained in:
1 parent
509b9b5b6d
commit
f97fcab74b
13 files changed
+235
-34
No files matched your search
@@ -2,6 +2,20 @@
|
||||
|
||||
## Unreleased
|
||||
|
||||
- `rb9704_cancel()` and `rb9704 cancel`: ask the modem to abandon the
|
||||
message in flight; `mo_done` then reports `-ECANCELED`. The status
|
||||
snapshot carries the in-flight message's id and start time. The fake
|
||||
modem's `mo-hold` and `mo-release` stand in for a modem that has taken
|
||||
a message and gone quiet.
|
||||
- `rb9704_begin` zeroes the library's count of queued MOs, which `rbBegin`
|
||||
leaves behind and which would otherwise stop every send after a stuck
|
||||
one.
|
||||
- `rb9704 send`: no fourth `CONFIG_RB9704_MESSAGE_MAX` buffer; text goes
|
||||
straight through, hex into a buffer the size of a shell line.
|
||||
- `rb9704`: a Cloudloop error, a bad token's `{"error": ...}` in a 200
|
||||
reply included, and a port that will not open are one line and a
|
||||
non-zero exit, not a traceback or a quiet success; a one-word `jspr`
|
||||
line is refused instead of raising.
|
||||
- `CONFIG_RB9704_POWER` now defaults on when the devicetree node has
|
||||
`power-gpios`, as documented. The Kconfig default referred to a compat
|
||||
variable nothing defined, so the pins were never driven unless the
|
||||
|
||||
Reference in new issue
Block a user