Skip to content

Commit 60db71d

Browse files
committed
Add .tool-versions file and declare board_config extern
Introduces a .tool-versions file specifying Python 3.11.9 for environment consistency. Also adds an extern declaration for HardwareConfig board_config in vibration_pwm.cpp to resolve linkage or visibility issues.
1 parent 7e2544f commit 60db71d

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python 3.11.9

src/sp140/vibration_pwm.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#include "sp140/esp32s3-config.h"
33
#include "sp140/lvgl/lvgl_updates.h"
44

5+
extern HardwareConfig board_config;
6+
57
// Pin is configured via s3_config.vibe_pwm
68
const int VIBE_PWM_FREQ = 1000; // Adjust as needed
79
const int VIBE_PWM_RESOLUTION = 8; // 8-bit resolution

0 commit comments

Comments
 (0)