Browse Source

update

master
zhaohe 2 years ago
parent
commit
d41e545028
  1. 3
      components/sensors/i2ceeprom/m24lrxxe_i2c_eeprom.cpp
  2. 2
      components/sensors/i2ceeprom/p24c16_eeprom.cpp
  3. 2
      components/zprotocol_helper/micro_computer_module_device_script_cmder_paser.cpp
  4. 2
      components/zprotocols/zcancmder_v2

3
components/sensors/i2ceeprom/m24lrxxe_i2c_eeprom.cpp

@ -1,5 +1,6 @@
#include "m24lrxxe_i2c_eeprom.hpp"
using namespace iflytop;
#ifdef HAL_I2C_MODULE_ENABLED
#define DATA_ADD 0x53
#define CONFIG_ADD 0x57
@ -62,3 +63,5 @@ int32_t M24LRXXE_I2C_EEPROM::read_reg(int32_t add, uint32_t* regval) {
return halstatustoerr(status);
}
#endif
#endif

2
components/sensors/i2ceeprom/p24c16_eeprom.cpp

@ -1,5 +1,6 @@
#include "p24c16_eeprom.hpp"
using namespace iflytop;
#ifdef HAL_I2C_MODULE_ENABLED
#define DATA_ADD 0x50
@ -61,3 +62,4 @@ int32_t P24C16::read32(uint16_t add, uint32_t* val) {
HAL_StatusTypeDef status = HAL_I2C_Mem_Read(m_i2c_handle, deviceadd << 1, regadd, I2C_MEMADD_SIZE_8BIT, (uint8_t*)val, 4, 10);
return halstatustoerr(status);
}
#endif

2
components/zprotocol_helper/micro_computer_module_device_script_cmder_paser.cpp

@ -58,7 +58,7 @@ void MicroComputerModuleDeviceScriptCmderPaser::initialize(ICmdParser* cancmder,
});
deviceManager->regOnRegValChangeEvent([this](int32_t moduleid, int32_t regindex, int32_t oldval, int32_t toval) { //
ZLOGI(TAG, "onRegValChangeEvent(%d,%d,%d->%d)", moduleid, regindex, oldval, toval);
ZLOGI(TAG, "onRegValChangeEvent(moduleId[%d], reg[%x], %d->%d)", moduleid, regindex, oldval, toval);
});
}

2
components/zprotocols/zcancmder_v2

@ -1 +1 @@
Subproject commit 9ab1db7926b72d1dec1db8c4f92d283d17dc2f92
Subproject commit b07e34e08cd6954295d3a6c2104fd0457bc4dab4
Loading…
Cancel
Save