mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 21:26:43 +00:00
Revert F() and move char* to FlashStringHelper
This commit is contained in:
parent
6ccd10dbe0
commit
894a6657d7
@ -19,21 +19,11 @@
|
||||
|
||||
namespace dev {
|
||||
|
||||
// void tftPinInfo(const __FlashStringHelper* pinfunction, int8_t pin)
|
||||
// {
|
||||
// if(pin != -1) {
|
||||
// char buffer[64];
|
||||
// snprintf_P(buffer, sizeof(buffer), PSTR("%-12s: %s (GPIO %02d)"), String(pinfunction).c_str(),
|
||||
// haspDevice.gpio_name(pin).c_str(), pin);
|
||||
// LOG_VERBOSE(TAG_TFT, buffer);
|
||||
// }
|
||||
// }
|
||||
|
||||
void tftPinInfo(const char* pinfunction, int8_t pin)
|
||||
void tftPinInfo(const __FlashStringHelper* pinfunction, int8_t pin)
|
||||
{
|
||||
if(pin != -1) {
|
||||
char buffer[64];
|
||||
snprintf_P(buffer, sizeof(buffer), PSTR("%-12s: %s (GPIO %02d)"), pinfunction,
|
||||
snprintf_P(buffer, sizeof(buffer), PSTR("%-12s: %s (GPIO %02d)"), String(pinfunction).c_str(),
|
||||
haspDevice.gpio_name(pin).c_str(), pin);
|
||||
LOG_VERBOSE(TAG_TFT, buffer);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user