Skip to content

Commit

Permalink
disable use of debug_pin01 for release
Browse files Browse the repository at this point in the history
  • Loading branch information
mightymos committed Jul 2, 2024
1 parent 6c3b787 commit 52f8248
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
# sonoff black box
#TARGET_BOARD = EFM8BB1
# low cost development board
TARGET_BOARD = EFM8BB1LCB
#TARGET_BOARD = EFM8BB1LCB
# sonoff white box
#TARGET_BOARD = OB38S003
TARGET_BOARD = OB38S003

# catches undefined
ifndef TARGET_BOARD
Expand Down
12 changes: 6 additions & 6 deletions drivers/efm8bb1/src/timer_interrupts.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ void pca0_isr(void) __interrupt (PCA0_VECTOR)
capture_handler(currentCapture);

// DEBUG:
if (rdata_level())
{
debug_pin01_on();
} else {
debug_pin01_off();
}
//if (rdata_level())
//{
// debug_pin01_on();
//} else {
// debug_pin01_off();
//}
}

// done in the interrupt already on efm8bb1
Expand Down
12 changes: 6 additions & 6 deletions drivers/ob38s003/src/timer_interrupts.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ void timer2_isr(void) __interrupt (d_T2_Vector)
clear_capture_flag();

// DEBUG:
if (rdata_level())
{
debug_pin01_on();
} else {
debug_pin01_off();
}
//if (rdata_level())
//{
// debug_pin01_on();
//} else {
// debug_pin01_off();
//}
}
2 changes: 1 addition & 1 deletion src/main_rcswitch.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ int main (void)
// DEBUG:
// on some boards, "debug pin" is actually buzzer
// so we do not want to use it for debugging unless buzzer has been removed
debug_pin01_off();
//debug_pin01_off();

//
startup_blink();
Expand Down

0 comments on commit 52f8248

Please sign in to comment.