mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-06 21:09:53 +02:00
Enable a bunch of clang-tidy checks (#2149)
This commit is contained in:
@@ -159,7 +159,7 @@ void Rtttl::loop() {
|
||||
// Now play the note
|
||||
if (note) {
|
||||
auto note_index = (scale - 4) * 12 + note;
|
||||
if (note_index < 0 || note_index >= sizeof(NOTES)) {
|
||||
if (note_index < 0 || note_index >= (int) sizeof(NOTES)) {
|
||||
ESP_LOGE(TAG, "Note out of valid range");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user