Skip to content

Commit

Permalink
Add conditional includes for non-ESP architectures
Browse files Browse the repository at this point in the history
- Added guards to include a utility header only if not on ESP32 or ESP8266.
- Keeps the code cleaner and avoids unnecessary dependencies.
  • Loading branch information
forntoh committed Jan 4, 2025
1 parent 5f92ad9 commit 706ddb1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ItemValue.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#pragma once

#ifndef ARDUINO_ARCH_ESP32
#ifndef ARDUINO_ARCH_ESP8266
#include "utils/printf.h"
#endif
#endif

#include "BaseItemZeroWidget.h"

/**
Expand Down

0 comments on commit 706ddb1

Please sign in to comment.