Merge pull request #6 from lioncash/constexpr

Listener: Move port constants into cpp file
This commit is contained in:
2019-09-03 19:54:27 -07:00
committed by GitHub
2 changed files with 6 additions and 6 deletions

View File

@@ -1,5 +1,7 @@
#include "jbus/Listener.hpp"
#include <cstdint>
#include "jbus/Common.hpp"
#include "jbus/Endpoint.hpp"
@@ -10,6 +12,8 @@
#endif
namespace jbus {
constexpr uint32_t DataPort = 0xd6ba;
constexpr uint32_t ClockPort = 0xc10c;
void Listener::listenerProc() {
#if LOG_LISTENER
@@ -29,7 +33,7 @@ void Listener::listenerProc() {
WaitGCTicks(GetGCTicksPerSec());
} else {
#if LOG_LISTENER
printf("data listening on port %d\n", DataPort);
printf("data listening on port %u\n", DataPort);
#endif
}
}
@@ -42,7 +46,7 @@ void Listener::listenerProc() {
WaitGCTicks(GetGCTicksPerSec());
} else {
#if LOG_LISTENER
printf("clock listening on port %d\n", ClockPort);
printf("clock listening on port %u\n", ClockPort);
#endif
}
}