Skip to content

Commit 25f7b0a

Browse files
committed
esp v2.0.2 i2c begin issue
1 parent 1d634b4 commit 25f7b0a

File tree

1 file changed

+1
-1
lines changed
  • examples/utils/sensor_test/magnetic_sensors/magnetic_sensor_i2c/magnetic_sensor_i2c_dual_bus_examples/esp32_i2c_dual_bus_example

1 file changed

+1
-1
lines changed

examples/utils/sensor_test/magnetic_sensors/magnetic_sensor_i2c/magnetic_sensor_i2c_dual_bus_examples/esp32_i2c_dual_bus_example/esp32_i2c_dual_bus_example.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ void setup() {
1818

1919
// Normally SimpleFOC will call begin for i2c but with esp32 begin() is the only way to set pins!
2020
// It seems safe to call begin multiple times
21-
Wire1.begin(19, 23, 400000);
21+
Wire1.begin(19, 23, (uint32_t)400000);
2222

2323
sensor0.init();
2424
sensor1.init(&Wire1);

0 commit comments

Comments
 (0)