TcMenu / tcMenuLib

TcMenu modular IoT menu library supporting rotary encoder, joysticks, many displays, and remote control over Ethernet and Serial
Apache License 2.0
111 stars 10 forks source link

getAsFloat / LargeNumberMenuItem #216

Closed tomelgato closed 5 months ago

tomelgato commented 5 months ago

Describe the bug Documentation suggests you can get/set a float value on a LargeNumberMenuItem, see https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/menu-item-types/largenum-menu-item/

mP_Ki = menuConfigurationPidI1.getAsFloat();

but

'class EditableLargeNumberMenuItem' has no member named 'getAsFloat'

Confirm that the bug is in the embedded library lib or doc

To Reproduce i can read with getLargeNumber() but not with getAsFloat(). Its a largeNumberMenuitem w. 2 decimals, 5 totals, default value 0 and allowed neg values

Device Specs osx, platformio, arduino nano esp32, latest tcmenu lib

tomelgato commented 5 months ago

P.S chances are high the mistake is on my side ;)

tomelgato commented 5 months ago

Solved, user error ;)

mP_Kp = menuConfigurationPidP1.getLargeNumber()->getAsFloat();