From f8e706f8bc5a69f5b8134624516a3597d335685e Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Mon, 10 Oct 2011 01:12:46 +0200 Subject: Give all hardware enough time to initialize. --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index b9a8c21..471e40e 100644 --- a/main.cpp +++ b/main.cpp @@ -97,7 +97,8 @@ int main() { GPIOB.CRH = 0x44444444; GPIOB.ODR = 1 << 1; - Time::sleep(10); + // Give all hardware enough time to initialize. + Time::sleep(100); //I2C i2c; i2c.enable(); -- cgit v1.2.3