Skip to content

Commit 3265fae

Browse files
committed
Update Dockerfile - comment power loss protection and X04 build
1 parent 055bb6f commit 3265fae

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Firmware/Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,15 @@ RUN sed -i 's|//#define ICM|#define ICM|g' /root/Arduino/libraries/SparkFun_9DoF
9090
# echo "compiler.cxx.extra_flags=-MMD -g3" >> /root/.arduino15/packages/SparkFun/hardware/apollo3/2.2.1/platform.local.txt
9191

9292
# Disable Power Loss Protection
93-
RUN cd ./OpenLog_Artemis \
94-
&& sed -i 's|#define noPowerLossProtection|//#define noPowerLossProtection|g' OpenLog_Artemis.ino
93+
# Uncomment to disable power loss protection
94+
#RUN cd ./OpenLog_Artemis \
95+
# && sed -i 's|#define noPowerLossProtection|//#define noPowerLossProtection|g' OpenLog_Artemis.ino
9596

9697
# X04 Hardware
97-
RUN cd ./OpenLog_Artemis \
98-
&& sed -i 's|#define HARDWARE_VERSION_MAJOR 1|#define HARDWARE_VERSION_MAJOR 0|g' OpenLog_Artemis.ino \
99-
&& sed -i 's|#define HARDWARE_VERSION_MINOR 0|#define HARDWARE_VERSION_MINOR 4|g' OpenLog_Artemis.ino
98+
# Uncomment to compile for the original X04 SparkX OLA
99+
#RUN cd ./OpenLog_Artemis \
100+
# && sed -i 's|#define HARDWARE_VERSION_MAJOR 1|#define HARDWARE_VERSION_MAJOR 0|g' OpenLog_Artemis.ino \
101+
# && sed -i 's|#define HARDWARE_VERSION_MINOR 0|#define HARDWARE_VERSION_MINOR 4|g' OpenLog_Artemis.ino
100102

101103
# Compile
102104
RUN cd ./OpenLog_Artemis \

0 commit comments

Comments
 (0)