Skip to content

Commit c6196f7

Browse files
authored
Merge pull request #2043 from peternewman/nortle-ftdi
Revert some stuff via 146cf26 which accidentally snuck into #1999 by mistake
2 parents b113786 + 50c59db commit c6196f7

2 files changed

Lines changed: 0 additions & 62 deletions

File tree

common/rdm/ResponderHelper.cpp

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
#include "ola/network/MACAddress.h"
3535
#include "ola/network/NetworkUtils.h"
3636
#include "ola/rdm/RDMEnums.h"
37-
#include "ola/rdm/ResponderEndpointManager.h"
3837
#include "ola/rdm/ResponderHelper.h"
3938
#include "ola/rdm/ResponderSensor.h"
4039
#include "ola/strings/Utils.h"
@@ -1303,56 +1302,6 @@ RDMResponse *ResponderHelper::GetMetadataJSON(
13031302
queued_message_count);
13041303
}
13051304

1306-
RDMResponse *ResponderHelper::GetEndpointList(
1307-
const RDMRequest *request,
1308-
const ola::rdm::EndpointManager *endpoint_manager,
1309-
uint8_t queued_message_count) {
1310-
PACK(
1311-
struct endpoint_info_s {
1312-
uint16_t endpoint_id;
1313-
uint8_t endpoint_type;
1314-
});
1315-
STATIC_ASSERT(sizeof(endpoint_info_s) == 3);
1316-
1317-
PACK(
1318-
struct endpoint_list_s {
1319-
uint32_t list_change_number;
1320-
endpoint_info_s endpoints[5];
1321-
});
1322-
STATIC_ASSERT(sizeof(endpoint_list_s) == (4 + (sizeof(endpoint_info_s) * 5)));
1323-
1324-
struct endpoint_list_s endpoint_list;
1325-
endpoint_list.list_change_number = HostToNetwork(endpoint_manager->list_change_number());
1326-
1327-
vector<uint16_t> endpoints;
1328-
1329-
endpoint_manager->EndpointIDs(&endpoints);
1330-
for (unsigned int i = 0; i < endpoints.size(); i++) {
1331-
endpoint_list.endpoints[i].endpoint_id = HostToNetwork(endpoints[i]);
1332-
}
1333-
1334-
unsigned int param_data_size = (
1335-
sizeof(endpoint_list) -
1336-
sizeof(endpoint_list.endpoints) + (sizeof(endpoint_info_s) * endpoints.size()));
1337-
1338-
return GetResponseFromData(
1339-
request,
1340-
reinterpret_cast<uint8_t*>(&endpoint_list),
1341-
param_data_size,
1342-
RDM_ACK,
1343-
queued_message_count);
1344-
}
1345-
1346-
RDMResponse *ResponderHelper::GetEndpointListChange(
1347-
const RDMRequest *request,
1348-
const ola::rdm::EndpointManager *endpoint_manager,
1349-
uint8_t queued_message_count) {
1350-
return GetUInt32Value(request,
1351-
NetworkToHost(endpoint_manager->list_change_number()),
1352-
queued_message_count);
1353-
}
1354-
1355-
13561305
/**
13571306
* @brief Handle a request that returns a string
13581307
* @note this truncates the string to max_length

include/ola/rdm/ResponderHelper.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -274,17 +274,6 @@ class ResponderHelper {
274274
const std::string &json,
275275
uint8_t queued_message_count = 0);
276276

277-
// E1.37-7 Helpers
278-
static RDMResponse *GetEndpointList(
279-
const RDMRequest *request,
280-
const ola::rdm::EndpointManager *endpoint_manager,
281-
uint8_t queued_message_count = 0);
282-
283-
static RDMResponse *GetEndpointListChange(
284-
const RDMRequest *request,
285-
const ola::rdm::EndpointManager *endpoint_manager,
286-
uint8_t queued_message_count = 0);
287-
288277
// Generic Helpers.
289278
static RDMResponse *GetString(
290279
const RDMRequest *request,

0 commit comments

Comments
 (0)