Skip to content

Commit 5e1fe6a

Browse files
authored
Merge pull request #222 from adafruit/refractor
Refractor
2 parents f82d1bc + d7d0846 commit 5e1fe6a

File tree

7 files changed

+192
-153
lines changed

7 files changed

+192
-153
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Bug Report
2+
description: Report a problem
3+
labels: 'Bug'
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for taking the time to fill out this bug report!
9+
It's okay to leave some blank if it doesn't apply to your problem.
10+
11+
- type: dropdown
12+
attributes:
13+
label: Operating System
14+
options:
15+
- Linux
16+
- MacOS
17+
- RaspberryPi OS
18+
- Windows 7
19+
- Windows 10
20+
- Windows 11
21+
- Others
22+
validations:
23+
required: true
24+
25+
- type: textarea
26+
attributes:
27+
label: INFO_UF2.TXT
28+
placeholder: Paste your INFO_UF2.TXT contents here
29+
validations:
30+
required: true
31+
32+
- type: textarea
33+
attributes:
34+
label: What happened ?
35+
placeholder: A clear and concise description of what the bug is.
36+
validations:
37+
required: true
38+
39+
- type: textarea
40+
attributes:
41+
label: How to reproduce ?
42+
placeholder: |
43+
1. Go to '...'
44+
2. Click on '....'
45+
3. See error
46+
validations:
47+
required: true
48+
49+
- type: textarea
50+
attributes:
51+
label: Debug Log
52+
placeholder: Debug log attached txt file.
53+
validations:
54+
required: false
55+
56+
- type: textarea
57+
attributes:
58+
label: Screenshots
59+
description: If applicable, add screenshots to help explain your problem.
60+
validations:
61+
required: false

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,9 @@ CFLAGS += -DMK_BOOTLOADER_VERSION='($(word 1,$(_VER)) << 16) + ($(word 2,$(_VER)
288288

289289
# Debug option use RTT for printf
290290
ifeq ($(DEBUG), 1)
291-
RTT_SRC = lib/SEGGER_RTT
292-
293-
CFLAGS += -DCFG_DEBUG -DCFG_TUSB_DEBUG=1 -DSEGGER_RTT_MODE_DEFAULT=SEGGER_RTT_MODE_BLOCK_IF_FIFO_FULL
294-
IPATH += $(RTT_SRC)/RTT
291+
CFLAGS += -DCFG_DEBUG -DSEGGER_RTT_MODE_DEFAULT=SEGGER_RTT_MODE_BLOCK_IF_FIFO_FULL
292+
RTT_SRC = lib/SEGGER_RTT
293+
IPATH += $(RTT_SRC)/RTT
295294
C_SRC += $(RTT_SRC)/RTT/SEGGER_RTT.c
296295
endif
297296

lib/sdk11/components/libraries/bootloader_dfu/dfu_single_bank.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ static void dfu_prepare_func_app_erase(uint32_t image_size)
101101
}
102102
else
103103
{
104-
// ceil div
105104
uint32_t const page_count = NRFX_CEIL_DIV(m_image_size, CODE_PAGE_SIZE);
106105

107106
for ( uint32_t i = 0; i < page_count; i++ )

src/boards/boards.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,13 +324,14 @@ void led_state(uint32_t state)
324324
} else if (temp_color_active) {
325325
final_color = (uint8_t*)&rgb_color;
326326
}
327-
#if defined(LED_NEOPIXEL) || defined(LED_RGB_RED_PIN) || defined(LED_APA102)
327+
328+
#if defined(LED_NEOPIXEL) || defined(LED_RGB_RED_PIN) || defined(LED_APA102)
328329
if (final_color != NULL) {
329330
neopixel_write(final_color);
330331
}
331-
#else
332+
#else
332333
(void) final_color;
333-
#endif
334+
#endif
334335
}
335336

336337
#ifdef LED_NEOPIXEL

src/boards/raytac_mdbt50q_rx/board.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@
6161
#define UF2_PRODUCT_NAME "Raytac MDBT50Q-RX"
6262
#define UF2_VOLUME_LABEL "MDBT50QBOOT"
6363
#define UF2_BOARD_ID "nRF52840-MDBT50Q_RX-verD"
64-
#define UF2_INDEX_URL "https://www.raytac.com/product/ins.php?index_id=89"
64+
#define UF2_INDEX_URL "https://www.adafruit.com/product/5199"
6565

6666
#endif // RAYTAC_MDBT50Q_RX_H

0 commit comments

Comments
 (0)