Skip to content

Commit

Permalink
deleted SetPeripheralsPower(true) statement which caused externally p…
Browse files Browse the repository at this point in the history
…owered devices to crash
  • Loading branch information
wswag committed Jan 9, 2024
1 parent 8478b7c commit 507e272
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/AXP192.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ void AXP192::begin() {
delay(100);
// I2C_WriteByteDataAt(0X15,0XFE,0XFF);

SetPeripherialsPower(true);

// axp: check v-bus status
// axp: check v-bus status & enable peripherals power (EXTEN) if 5V Out required
if (Read8bit(0x00) & 0x08) {
Write1Byte(0x30, Read8bit(0x30) | 0x80);
// if v-bus can use, disable M-Bus 5V output to input
Expand Down

0 comments on commit 507e272

Please sign in to comment.