From 386cd9d9b10540c1af4255fe2035ee6a28fc3593 Mon Sep 17 00:00:00 2001 From: DracoBlue Date: Mon, 22 Apr 2019 11:41:13 +0200 Subject: [PATCH] Set missing DATABITS_8 property (#2672) Is e.g. necessary for code at https://github.com/nodemcu/nodemcu-firmware/blob/11592951b90707cdcb6d751876170bf4da82850d/docs/en/modules/ucg.md --- lua_compat/spi_compat.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua_compat/spi_compat.lua b/lua_compat/spi_compat.lua index 865c578d43..c10431d140 100644 --- a/lua_compat/spi_compat.lua +++ b/lua_compat/spi_compat.lua @@ -97,7 +97,8 @@ return function (pin_sclk, pin_mosi, pin_miso, pin_cs) M.CPHA_HIGH = 1 M.HALFDUPLEX = 0 M.FULLDUPLEX = 1 - + M.DATABITS_8 = 8 + _pin_sclk = pin_sclk _pin_mosi = pin_mosi _pin_miso = pin_miso