Skip to content

Commit df08473

Browse files
authored
Merge pull request #1961 from peternewman/0.10-clang-latest
Fix some C++ comment typos and Python exception behaviour
2 parents 578b2fb + 4828ff3 commit df08473

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

common/protocol/Ola.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ enum PluginIds {
7878
}
7979

8080
/**
81-
* If you add more here be sure to update ResponseCodeToString in RDMHelper.cpp
81+
* If you add more here be sure to update StatusCodeToString in RDMHelper.cpp
8282
*/
8383
enum RDMResponseCode {
8484
// The request/response completed correctly

plugins/spi/SPIOutput.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class SPIOutput: public ola::rdm::DiscoverableRDMControllerInterface {
7373

7474
private:
7575
/**
76-
* The RDM Operations for the MovingLightResponder.
76+
* The RDM Operations for the SPIOutput.
7777
*/
7878
class RDMOps : public ola::rdm::ResponderOps<SPIOutput> {
7979
public:

python/ola/PidStore.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ def LoadFile(self, pid_file_name, validate, override=False):
10311031
if validate:
10321032
if ((pid_pb.value >= RDMConstants.RDM_MANUFACTURER_PID_MIN) and
10331033
(pid_pb.value <= RDMConstants.RDM_MANUFACTURER_PID_MAX)):
1034-
raise InvalidPidFormat('%0x04hx between %0x04hx and %0x04hx in %s' %
1034+
raise InvalidPidFormat('0x%04hx between 0x%04hx and 0x%04hx in %s' %
10351035
(pid_pb.value,
10361036
RDMConstants.RDM_MANUFACTURER_PID_MIN,
10371037
RDMConstants.RDM_MANUFACTURER_PID_MAX,
@@ -1067,7 +1067,7 @@ def LoadFile(self, pid_file_name, validate, override=False):
10671067
if ((pid_pb.value < RDMConstants.RDM_MANUFACTURER_PID_MIN) or
10681068
(pid_pb.value > RDMConstants.RDM_MANUFACTURER_PID_MAX)):
10691069
raise InvalidPidFormat(
1070-
'Manufacturer pid 0x%04hx not between %0x04hx and %0x04hx' %
1070+
'Manufacturer pid 0x%04hx not between 0x%04hx and 0x%04hx' %
10711071
(pid_pb.value,
10721072
RDMConstants.RDM_MANUFACTURER_PID_MIN,
10731073
RDMConstants.RDM_MANUFACTURER_PID_MAX))

0 commit comments

Comments
 (0)