Skip to content

Commit f69e4a6

Browse files
authored
Merge pull request #1603 from peternewman/master-resync
Master resync
2 parents 90c2691 + c1e17bb commit f69e4a6

16 files changed

Lines changed: 62 additions & 15 deletions

File tree

File renamed without changes.

.codespellignorewords

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
thead
2+
acn
3+
ACN

.travis-ci.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ COVERITY_SCAN_BUILD_URL="https://scan.coverity.com/scripts/travisci_build_coveri
1212
PYCHECKER_BLACKLIST="threading,unittest,cmd,optparse,google,google.protobuf,ssl,fftpack,lapack_lite,mtrand"
1313

1414
SPELLINGBLACKLIST=$(cat <<-BLACKLIST
15-
-wholename "./.codespellignore" -or \
15+
-wholename "./.codespellignorewords" -or \
16+
-wholename "./.codespellignorelines" -or \
1617
-wholename "./.git/*" -or \
1718
-wholename "./aclocal.m4" -or \
1819
-wholename "./config/config.guess" -or \
@@ -171,10 +172,10 @@ elif [[ $TASK = 'codespell' ]]; then
171172
$SPELLINGBLACKLIST \
172173
\) | xargs")
173174
# count the number of codespell errors
174-
spellingerrors=$(zrun codespell --check-filenames --check-hidden --quiet 2 --regex "[a-zA-Z0-9][\\-'a-zA-Z0-9]+[a-zA-Z0-9]" --exclude-file .codespellignore $spellingfiles 2>&1 | wc -l)
175+
spellingerrors=$(zrun codespell --check-filenames --check-hidden --quiet 2 --regex "[a-zA-Z0-9][\\-'a-zA-Z0-9]+[a-zA-Z0-9]" --exclude-file .codespellignorelines --ignore-words .codespellignorewords $spellingfiles 2>&1 | wc -l)
175176
if [[ $spellingerrors -ne 0 ]]; then
176177
# print the output for info
177-
zrun codespell --check-filenames --check-hidden --quiet 2 --regex "[a-zA-Z0-9][\\-'a-zA-Z0-9]+[a-zA-Z0-9]" --exclude-file .codespellignore $spellingfiles
178+
zrun codespell --check-filenames --check-hidden --quiet 2 --regex "[a-zA-Z0-9][\\-'a-zA-Z0-9]+[a-zA-Z0-9]" --exclude-file .codespellignorelines --ignore-words .codespellignorewords $spellingfiles
178179
echo "Found $spellingerrors spelling errors via codespell"
179180
exit 1;
180181
else

common/rdm/RDMHelper.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,11 @@ string NackReasonToString(uint16_t reason) {
196196
case NR_ACTION_NOT_SUPPORTED:
197197
return "Action not supported";
198198
case NR_ENDPOINT_NUMBER_INVALID:
199-
return "Invalid endpoint";
199+
return "Endpoint number invalid";
200+
case NR_INVALID_ENDPOINT_MODE:
201+
return "Invalid endpoint mode";
202+
case NR_UNKNOWN_UID:
203+
return "Unknown UID";
200204
default:
201205
ostringstream str;
202206
str << "Unknown, was " << reason;
@@ -786,7 +790,7 @@ string SlotInfoToString(uint8_t slot_type, uint16_t slot_label) {
786790
case SD_COLOR_SCROLL:
787791
return "Primary, scroll";
788792
case SD_COLOR_SEMAPHORE:
789-
return "Primary, color semaphone";
793+
return "Primary, color semaphore";
790794
case SD_COLOR_ADD_AMBER:
791795
return "Primary, additive amber";
792796
case SD_COLOR_ADD_WHITE:

common/utils/StringUtils.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ void CapitalizeLabel(string *s) {
435435
}
436436

437437
void CustomCapitalizeLabel(string *s) {
438+
// Remember to update the Doxygen in include/ola/StringUtils.h too
438439
static const char* const transforms[] = {
439440
"dhcp",
440441
"dmx",
@@ -443,6 +444,7 @@ void CustomCapitalizeLabel(string *s) {
443444
"ipv4", // Should really be IPv4 probably, but better than nothing
444445
"ipv6", // Should really be IPv6 probably, but better than nothing
445446
"led",
447+
"mdmx", // City Theatrical, should really be mDMX, but better than nothing
446448
"pdl",
447449
"pid",
448450
"rdm",

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ fi
932932
AC_SUBST(PLUGIN_LIBS)
933933
AC_SUBST(OLA_SERVER_LIBS)
934934

935-
# html & data directories
935+
# HTML & data directories
936936
ola_datadir=$datadir/olad
937937
www_datadir=$ola_datadir/www
938938
piddatadir=$datadir/ola/pids
@@ -1014,5 +1014,5 @@ Now type 'make @<:@<target>@:>@'
10141014
where the optional <target> is:
10151015
all - build everything
10161016
check - run the tests
1017-
doxygen-doc - generate the html documentation
1017+
doxygen-doc - generate the HTML documentation
10181018
-------------------------------------------------------"

include/ola/StringUtils.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,16 @@ void CapitalizeLabel(std::string *s);
441441
*
442442
* @param s a string to transform.
443443
* The following are capitalized:
444-
* - ip
444+
* - dhcp
445445
* - dmx
446+
* - dns
447+
* - ip
448+
* - ipv4
449+
* - ipv6
450+
* - led
451+
* - mdmx
452+
* - rdm
453+
* - uid
446454
*/
447455
void CustomCapitalizeLabel(std::string *s);
448456

include/ola/rdm/RDMEnums.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,11 @@ typedef enum {
326326
} rdm_data_type;
327327

328328

329+
// Remember to update the other places when adding new NACK codes:
330+
// common/rdm/RDMHelper.cpp
331+
// plugins/usbpro/DmxTriWidget.cpp
332+
// plugins/usbpro/DmxTriWidget.h
333+
// python/ola/OlaClient.py
329334
typedef enum {
330335
NR_UNKNOWN_PID = 0x0000,
331336
NR_FORMAT_ERROR = 0x0001,
@@ -339,7 +344,9 @@ typedef enum {
339344
NR_SUB_DEVICE_OUT_OF_RANGE = 0x0009,
340345
NR_PROXY_BUFFER_FULL = 0x000A,
341346
NR_ACTION_NOT_SUPPORTED = 0x000B,
342-
NR_ENDPOINT_NUMBER_INVALID = 0x0011
347+
NR_ENDPOINT_NUMBER_INVALID = 0x000C,
348+
NR_INVALID_ENDPOINT_MODE = 0x000D,
349+
NR_UNKNOWN_UID = 0x000E
343350
} rdm_nack_reason;
344351

345352

include/ola/web/JsonSections.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace web {
3434
* This is the base item class. Items are composed into sections.
3535
* Each item has the following:
3636
* - A text description
37-
* - A type, which controls how the item is renders
37+
* - A type, which controls how the item is rendered
3838
* - The value.
3939
* - Optional id. A non-empty id makes this item editable
4040
* - Optional button text. Non-empty means this item gets it own button.

libs/usb/LibUsbAdaptor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ class LibUsbAdaptor {
320320
* output (depending on direction bits within bmRequestType)
321321
* @param wLength the length field for the setup packet. The data buffer
322322
* should be at least this size.
323-
* @param timeout timeout (in millseconds) that this function should wait
323+
* @param timeout timeout (in milliseconds) that this function should wait
324324
* before giving up due to no response being received. For an unlimited
325325
* timeout, use value 0.
326326
* @returns on success, the number of bytes actually transferred

0 commit comments

Comments
 (0)