From 61562b45bd40bacd834d99423e023ec484cc665a Mon Sep 17 00:00:00 2001 From: wolfg Date: Sun, 6 Aug 2017 04:10:49 +0800 Subject: [PATCH] Fix typo in code sample (#2063) --- docs/en/modules/hmc5883l.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/modules/hmc5883l.md b/docs/en/modules/hmc5883l.md index 43f535f8..443a299f 100644 --- a/docs/en/modules/hmc5883l.md +++ b/docs/en/modules/hmc5883l.md @@ -20,7 +20,7 @@ temperature multiplied with 10 (integer) ```lua local sda, scl = 1, 2 i2c.setup(0, sda, scl, i2c.SLOW) -- call i2c.setup() only once -hmc58831.setup() +hmc5883l.setup() local x,y,z = hmc5883l.read() print(string.format("x = %d, y = %d, z = %d", x, y, z)) ```