Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
markirb committed Nov 17, 2024
1 parent 0bb43d5 commit 84cb637
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/BL0942/shelly_pm_bl0942.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ bool BL0942PowerMeter::ReadReg(uint8_t reg, uint8_t *rx_buf, size_t len) {
uint8_t chksum = tx_buf[0] + tx_buf[1];
for (int i = 0; i < len - 1; i++) {
chksum += rx_buf[i];
LOG(LL_ERROR, "%08X", rx_buf[i]);
LOG(LL_ERROR, ("%08X", rx_buf[i]));
}
chksum ^= 0xFF;

if (read_len != len || rx_buf[len - 1] != chksum) {
LOG(LL_ERROR, "wrong checksum");
LOG(LL_ERROR, ("wrong checksum") );
return false;
}
return true;
Expand Down
2 changes: 0 additions & 2 deletions src/ShellyMini1PMGen3/shelly_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
#include "shelly_sys_led_btn.hpp"
#include "shelly_temp_sensor_ntc.hpp"



namespace shelly {

void CreatePeripherals(std::vector<std::unique_ptr<Input>> *inputs,
Expand Down
1 change: 0 additions & 1 deletion src/shelly_output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "driver/gpio.h"
#endif


#ifdef MGOS_HAVE_PWM
#include "mgos_pwm.h"
#endif
Expand Down

0 comments on commit 84cb637

Please sign in to comment.