Skip to content

Commit

Permalink
remove XIAO ifdefs from jsflash to this board behaves the same as all…
Browse files Browse the repository at this point in the history
… the others
  • Loading branch information
gfwilliams authored Jan 28, 2025
1 parent 69b381e commit 18b47c0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/jsflash.c
Original file line number Diff line number Diff line change
Expand Up @@ -1381,9 +1381,6 @@ bool jsfLoadBootCodeFromFlash(bool isReset) {
#else
if (!(jshPinGetValue(BTN1_PININDEX)==BTN1_ONSTATE))
#endif
#endif
#if defined(XIAOBLE)
if (!(jshPinGetValue(BTN1_PININDEX)==BTN1_ONSTATE))
#endif
if (jsiStatus & JSIS_FIRST_BOOT) {
JsVar *code = jsfReadFile(jsfNameFromString(".bootPowerOn"),0,0);
Expand All @@ -1401,10 +1398,6 @@ bool jsfLoadBootCodeFromFlash(bool isReset) {
if (!(jshPinGetValue(BTN1_PININDEX)==BTN1_ONSTATE &&
(jsiStatus & JSIS_FIRST_BOOT)))
#endif
#endif
#if defined(XIAOBLE)
if (!(jshPinGetValue(BTN1_PININDEX)==BTN1_ONSTATE &&
(jsiStatus & JSIS_FIRST_BOOT)))
#endif
{
char filename[7] = ".bootX";
Expand Down

0 comments on commit 18b47c0

Please sign in to comment.