Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 233d3dbc authored by Michael Sun's avatar Michael Sun
Browse files

floss: fix TimeDelta calls from older libchrome breaks CrOS build.

base::TimeDelta calls introduced to eatt are only for libchrome before
version 931007. Therefore, call to it break the updated ChromeOS build.

BUG: 239467279
Tag: #floss
Test: emerge-${BOARD} floss
Change-Id: I2a375f6624f12a883f1e177d581285f44d459f82
parent 9a699a72
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -214,7 +214,12 @@ struct eatt_impl {
          FROM_HERE,
          base::BindOnce(&eatt_impl::connect_eatt_wrap, base::Unretained(this),
                         std::move(eatt_dev)),
          base::TimeDelta::FromMilliseconds(500));
#if BASE_VER < 931007
          base::TimeDelta::FromMilliseconds(500)
#else
          base::Milliseconds(500)
#endif
      );

      LOG_INFO("Scheduled peripheral connect eatt for device with status: %d",
               (int)status);