Skip to content

Commit

Permalink
Revert bmcCtrl changes
Browse files Browse the repository at this point in the history
  • Loading branch information
stefi07 committed Dec 13, 2023
1 parent bca4641 commit e30bf29
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions apps/bmcCtrl/bmcCtrl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ Open questions:

/* BMC SDK C Header */
#include <BMCApi.h>
#include <BMC_PCIeApi.h>


/** \defgroup bmcCtrl
Expand Down Expand Up @@ -273,7 +272,7 @@ int bmcCtrl::appLogic()
shmimMonitor<bmcCtrl>::appLogic();

if(state()==stateCodes::POWEROFF) return 0;

if(state()==stateCodes::POWERON)
{
sleep(5);
Expand Down Expand Up @@ -341,20 +340,10 @@ int bmcCtrl::initDM()

log<text_log>("BMC " + m_serialNumber + " initialized", logPrio::LOG_NOTICE);


// enable high resolution mode (dithering filter)
ret = BMC_PCIeEnableHighRes(&m_dm, true);
if(ret != NO_ERR)
{
const char *err;
err = BMCErrorString(ret);
log<text_log>(std::string("Enabling high resolution (pseudo 16-bit) mode failed: ") + err, logPrio::LOG_ERROR);
}
log<text_log>("BMC high resolution mode enabled", logPrio::LOG_NOTICE);

// Get number of actuators
m_nbAct = m_dm.ActCount;


// Load the DM map
uint32_t *map_lut;
map_lut = (uint32_t *)malloc(sizeof(uint32_t)*MAX_DM_SIZE);
Expand Down Expand Up @@ -457,7 +446,6 @@ int bmcCtrl::commandDM(void * curr_src)
// if every actuator is addressable.
// Loop over addressable only?
//double mean = 0;

for (uint32_t idx = 0; idx < m_nbAct; ++idx)
{
int address = m_actuator_mapping[idx];
Expand Down

0 comments on commit e30bf29

Please sign in to comment.