From 5ab8de34e74ef79f75017d2eb5a73ece85ddec4e Mon Sep 17 00:00:00 2001 From: aeprox Date: Sat, 17 Oct 2015 15:47:17 +0200 Subject: [PATCH] Fix adc.readvdd33 Replace undocumented readvdd33 function with SDK function system_get_vdd33 --- app/modules/adc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/modules/adc.c b/app/modules/adc.c index 799d7e72..f65e6c54 100644 --- a/app/modules/adc.c +++ b/app/modules/adc.c @@ -34,12 +34,12 @@ static int adc_readvdd33( lua_State* L ) } else { - vdd33 = readvdd33(); + vdd33 = system_get_vdd33(); } } else { - vdd33 = readvdd33(); + vdd33 = system_get_vdd33(); } lua_pushinteger(L, vdd33); return 1;