mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 06:33:51 +00:00
Enable a bunch of clang-tidy checks (#2149)
This commit is contained in:
@@ -113,7 +113,7 @@ void ProntoProtocol::send_pronto_(RemoteTransmitData *dst, const std::string &st
|
||||
const char *p = str.c_str();
|
||||
char *endptr[1];
|
||||
|
||||
for (uint16_t i = 0; i < len; i++) {
|
||||
for (size_t i = 0; i < len; i++) {
|
||||
uint16_t x = strtol(p, endptr, 16);
|
||||
if (x == 0 && i >= NUMBERS_IN_PREAMBLE) {
|
||||
// Alignment error?, bail immediately (often right result).
|
||||
|
||||
@@ -33,7 +33,7 @@ void RemoteTransmitterBase::send_(uint32_t send_times, uint32_t send_wait) {
|
||||
uint32_t buffer_offset = 0;
|
||||
buffer_offset += sprintf(buffer, "Sending times=%u wait=%ums: ", send_times, send_wait);
|
||||
|
||||
for (int32_t i = 0; i < vec.size(); i++) {
|
||||
for (size_t i = 0; i < vec.size(); i++) {
|
||||
const int32_t value = vec[i];
|
||||
const uint32_t remaining_length = sizeof(buffer) - buffer_offset;
|
||||
int written;
|
||||
|
||||
Reference in New Issue
Block a user