From 6b63215c07e3e9af5320e462ad789e6feeceb478 Mon Sep 17 00:00:00 2001 From: Irene-Maxine <114802521+Irene-Maxine@users.noreply.github.com> Date: Mon, 21 Oct 2024 09:38:14 +0800 Subject: [PATCH] =?UTF-8?q?LTR308=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- boards/default_src/micropython/generators/sensor_extern.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/default_src/micropython/generators/sensor_extern.js b/boards/default_src/micropython/generators/sensor_extern.js index d7f92d74..40e00d0a 100644 --- a/boards/default_src/micropython/generators/sensor_extern.js +++ b/boards/default_src/micropython/generators/sensor_extern.js @@ -175,7 +175,7 @@ export const sensor_use_i2c_init = function (_, generator) { code = v + ' = adxl345.' + key + "(" + iv + ')\n'; } else if (key == 'LTR308') { generator.definitions_['import_ltr308al'] = 'import ltr308al'; - code = v + ' = ltr308al.LTR308ALS(' + iv + ')\n'; + code = v + ' = ltr308al.LTR308_ALS(' + iv + ')\n'; } else if (key == 'LTR381RGB') { generator.definitions_['import_ltr381rgb'] = 'import ltr381rgb'; code = v + ' = ltr381rgb.LTR_381RGB(' + iv + ')\n';