Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ plugins:
lint:
enabled:
- checkov@3.2.497
- renovate@42.81.2
- prettier@3.7.4
- renovate@42.81.8
- prettier@3.8.0
- trufflehog@3.92.4
- yamllint@1.38.0
- bandit@1.9.2
Expand Down
2 changes: 0 additions & 2 deletions src/motion/ICM20948Sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ int32_t ICM20948Sensor::runOnce()
int32_t ICM20948Sensor::runOnce()
{
#if !defined(MESHTASTIC_EXCLUDE_SCREEN) && HAS_SCREEN
#if defined(MUZI_BASE) // temporarily gated to single device due to feature freeze
if (screen && !screen->isScreenOn() && !config.display.wake_on_tap_or_motion && !config.device.double_tap_as_button_press) {
if (!isAsleep) {
LOG_DEBUG("sleeping IMU");
Expand All @@ -60,7 +59,6 @@ int32_t ICM20948Sensor::runOnce()
sensor->sleep(false);
isAsleep = false;
}
#endif

float magX = 0, magY = 0, magZ = 0;
if (sensor->dataReady()) {
Expand Down
2 changes: 1 addition & 1 deletion src/motion/ICM20948Sensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ class ICM20948Sensor : public MotionSensor
private:
ICM20948Singleton *sensor = nullptr;
bool showingScreen = false;
#ifdef MUZI_BASE
bool isAsleep = false;
#ifdef MUZI_BASE
float highestX = 449.000000, lowestX = -140.000000, highestY = 422.000000, lowestY = -232.000000, highestZ = 749.000000,
lowestZ = 98.000000;
#else
Expand Down
11 changes: 11 additions & 0 deletions variants/esp32s3/heltec_v4/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ build_flags =
-D I2C_SCL1=3

[env:heltec-v4-tft]
custom_meshtastic_hw_model = 110
custom_meshtastic_hw_model_slug = HELTEC_V4
custom_meshtastic_architecture = esp32-s3
custom_meshtastic_actively_supported = true
custom_meshtastic_support_level = 1
custom_meshtastic_display_name = Heltec V4 TFT
custom_meshtastic_images = heltec_v4.svg
custom_meshtastic_tags = Heltec
custom_meshtastic_requires_dfu = true
custom_meshtastic_partition_scheme = 16MB

extends = heltec_v4_base
build_flags =
${heltec_v4_base.build_flags} ;-Os
Expand Down
Loading