mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-03-15 03:38:19 +01:00
more automatic tests for MQTT topics; add potentiometer mechanism to simulator; allow simulator to set ADC values on Windows; fix adc strange variable types on BK7231; fix cleaning pin roles between simulator scenes; add windows-only debug macro $channelstates
This commit is contained in:
@@ -72,6 +72,14 @@ bool CText::processKeyDown(int keyCode) {
|
||||
float CText::getFloat() const {
|
||||
return atof(txt.c_str());
|
||||
}
|
||||
void CText::setTextf(const char *fmt, ...) {
|
||||
va_list argList;
|
||||
char buffer[512];
|
||||
va_start(argList, fmt);
|
||||
vsnprintf(buffer, sizeof(buffer), fmt, argList);
|
||||
va_end(argList);
|
||||
setText(buffer);
|
||||
}
|
||||
void CText::appendText(const char *s) {
|
||||
//txt.append(s);
|
||||
txt.insert(cursorPos, s);
|
||||
|
||||
Reference in New Issue
Block a user