You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I want to configure a longer mqtt topic name than previously configured, I cannot add the additional characters. So if my topic was co2 I cannot change it to co2-sensor for example.
To Reproduce
Steps to reproduce the behavior:
Go to 'Configuration/MQTT Config'
Scroll down to 'Topic'
Change 'Topic' to 'co2'
Save configuration
Go back to 'Configuration/MQTT Config'
Scroll down to 'Topic'
Change 'Topic' to 'co2-sensor'
It is not possible to add the - character.
Expected behavior
It should be possible to add characters after the last character of the previous setting.
As a workaround, until there is a fix, simply exit the menu and enter it again, then you should be able to input a longer topic. Make sure to be using latest release.
Describe the bug
When I want to configure a longer mqtt topic name than previously configured, I cannot add the additional characters. So if my topic was
co2
I cannot change it toco2-sensor
for example.To Reproduce
Steps to reproduce the behavior:
-
character.Expected behavior
It should be possible to add characters after the last character of the previous setting.
Additional context
Looking at the code, the problem might be related with truncating the tempstring before copying it to the used value here: https://github.com/melkati/CO2-Gadget/blob/master/CO2_Gadget_Menu.h#L383
Note that this pattern is used for most settings.
The text was updated successfully, but these errors were encountered: