Skip to content

Commit c1e17bb

Browse files
committed
Merge branch '0.10' of https://github.com/openlightingproject/ola into master-resync
2 parents b1f734c + 7bcba60 commit c1e17bb

11 files changed

Lines changed: 50 additions & 8 deletions

File tree

common/rdm/RDMHelper.cpp

Lines changed: 5 additions & 1 deletion
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;

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

man/generate-html.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ for man_file in *.1; do
3535
output_file=$output_dir/man1/$man_file.html;
3636
man2html -r $man_file -M ../index.html | sed 1,2d > $output_file;
3737
chmod a+r $output_file;
38-
echo "<li><a href='./man1/$man_file.html'>$man_file</a></li>" >> $index_file
38+
echo "<li><a href='./man1/$man_file.html'>$man_file</a> - `grep "\.SH NAME" $man_file -A 1 | tail -n 1 | sed -e 's/\\\-/-/g'`</li>" >> $index_file
3939
done
4040

4141
cat << 'EOF' >> $index_file

plugins/usbpro/DmxTriWidget.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,18 @@ bool DmxTriWidgetImpl::ReturnCodeToNackReason(
988988
case EC_PROXY_BUFFER_FULL:
989989
*reason = ola::rdm::NR_PROXY_BUFFER_FULL;
990990
break;
991+
case EC_ACTION_NOT_SUPPORTED:
992+
*reason = ola::rdm::NR_ACTION_NOT_SUPPORTED;
993+
break;
994+
case EC_ENDPOINT_NUMBER_INVALID:
995+
*reason = ola::rdm::NR_ENDPOINT_NUMBER_INVALID;
996+
break;
997+
case EC_INVALID_ENDPOINT_MODE:
998+
*reason = ola::rdm::NR_INVALID_ENDPOINT_MODE;
999+
break;
1000+
case EC_UNKNOWN_UID:
1001+
*reason = ola::rdm::NR_UNKNOWN_UID;
1002+
break;
9911003
default:
9921004
return false;
9931005
}

plugins/usbpro/DmxTriWidget.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,12 @@ class DmxTriWidgetImpl: public BaseUsbProWidget,
191191
EC_FRAME_OVERFLOW = 0x28,
192192
EC_SUBDEVICE_UNKNOWN = 0x29,
193193
EC_PROXY_BUFFER_FULL = 0x2a, // this isn't included in the docs
194+
EC_ACTION_NOT_SUPPORTED = 0x2b, // this is a guess
195+
EC_ENDPOINT_NUMBER_INVALID = 0x2c, // this is a guess
196+
EC_INVALID_ENDPOINT_MODE = 0x2d, // this is a guess
197+
EC_UNKNOWN_UID = 0x2e, // this is a guess
194198
} dmx_tri_error_codes;
199+
// TODO(Peter): try and test the guessed values
195200

196201
static const unsigned int DATA_OFFSET = 2; // first two bytes are CI & RC
197202
static const uint8_t EXTENDED_COMMAND_LABEL = 88; // 'X'

0 commit comments

Comments
 (0)