ESPHome
2026.12.0-dev
Loading...
Searching...
No Matches
esphome
components
cstxxx
cstxxx.cpp
Go to the documentation of this file.
1
#include "
cstxxx.h
"
2
#include "
esphome/core/log.h
"
3
4
namespace
esphome::cstxxx
{
5
6
ESPHOME_LOG_TAG
(TAG,
"cstxxx"
);
7
8
void
CSTTouchscreen::fail_check_code_
(uint16_t check_code) {
9
ESP_LOGE(TAG,
"Firmware check code 0x%04X"
, check_code);
10
this->
mark_failed
(LOG_STR(
"Invalid firmware check code"
));
11
}
12
13
}
// namespace esphome::cstxxx
esphome::Component::mark_failed
void mark_failed()
Mark this component as failed.
Definition
component.cpp:203
esphome::cstxxx::CSTTouchscreen::fail_check_code_
void fail_check_code_(uint16_t check_code)
Logs a wrong firmware check code and marks the component failed.
Definition
cstxxx.cpp:8
cstxxx.h
log.h
esphome::cstxxx
Definition
cstxxx.cpp:4
esphome::cstxxx::ESPHOME_LOG_TAG
ESPHOME_LOG_TAG(TAG, "cstxxx")
Generated by
1.12.0