Skip to content

Commit

Permalink
codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
schwehr committed Aug 1, 2024
1 parent 1e19605 commit d738df7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ais/stream/checksum.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def checksumStr(data):
if data[0]=='!' or data[0]=='?': data = data[1:]
if data[-1]=='*': data = data[:-1]
if data[-3]=='*': data = data[:-3]
# FIX: rename sum to not shadown builting function
# FIX: rename sum to not shadow builtin function
checksum = 0
for c in data:
checksum = checksum ^ ord(c)
Expand Down
2 changes: 1 addition & 1 deletion src/libais/ais.h
Original file line number Diff line number Diff line change
Expand Up @@ -2479,7 +2479,7 @@ class Ais16 : public AisMsg {
ostream& operator<< (ostream &o, const Ais16 &msg);

// ITU-R M.823 http://www.itu.int/rec/R-REC-M.823/en
// 17 - 'A' - GNSS broacast - TODO(schwehr): only partially coded
// 17 - 'A' - GNSS broadcast - TODO(schwehr): only partially coded
class Ais17 : public AisMsg {
public:
int spare;
Expand Down
2 changes: 1 addition & 1 deletion src/libais/ais17.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// A - GNSS broacast -
// A - GNSS broadcast -
// TODO(schwehr): only partially coded - need to finish
// http://www.itu.int/rec/R-REC-M.823/en
// http://www.iala-aism.org/iala/publications/documentspdf/doc_348_eng.pdf
Expand Down
2 changes: 1 addition & 1 deletion src/libais/ais26.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// 'J' - Multi slot binary message with comm state
// TODO(schwehr): handle payload
// BAD: the comm-state is after the veriable payload. This is a bad design.
// BAD: the comm-state is after the variable payload. This is a bad design.

// See also: http://www.e-navigation.nl/asm

Expand Down
2 changes: 1 addition & 1 deletion src/libais/vdm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ bool VdmStream::AddLine(const std::string &line) {
int seq = sentence->sequence_number();
int tot = sentence->sentence_total();

// These are enforced by NmeaSentence, so only check wehen debugging.
// These are enforced by NmeaSentence, so only check when debugging.
assert(seq < kNumSequenceChannels);
assert(tot < kMaxSentences);

Expand Down

0 comments on commit d738df7

Please sign in to comment.