Skip to content

Commit 9a4d94f

Browse files
committed
clean up
1 parent a265ec7 commit 9a4d94f

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

cores/nRF5/utility/debug.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ extern uint32_t __StackLimit[];
5656
extern "C"
5757
{
5858

59+
void HardFault_Handler(void)
60+
{
61+
// reset on hardfault
62+
NVIC_SystemReset();
63+
}
64+
5965
int cprintf(const char * format, ...)
6066
{
6167
char buf[256];
@@ -65,6 +71,8 @@ int cprintf(const char * format, ...)
6571
va_start(ap, format);
6672

6773
len = vsnprintf(buf, 256, format, ap);
74+
75+
// SEGGER_SYSVIEW_Print(buf);
6876
Serial.write(buf, len);
6977

7078
va_end(ap);

libraries/Bluefruit52Lib/examples/Peripheral/ancs/ancs.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ void setup()
5151
Bluefruit.configPrphBandwidth(BANDWIDTH_MAX);
5252

5353
Bluefruit.begin();
54+
5455
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
5556
Bluefruit.setTxPower(4);
5657
Bluefruit.setName("Bluefruit52");

libraries/FileSystem/examples/External_Format/External_Format.ino

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,12 @@ void setup()
3434
ExternalFS.begin();
3535

3636
Serial.print("Formating ...");
37-
Serial.flush();
3837

3938
// Format without erase
4039
// Pass true for full external flash erasing (take time)
4140
ExternalFS.format(false);
4241

4342
Serial.println("Done");
44-
Serial.flush();
4543
}
4644

4745
// the loop function runs over and over again forever

libraries/FileSystem/examples/Internal_Format/Internal_Format.ino

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,12 @@ void setup()
3434
InternalFS.begin();
3535

3636
Serial.print("Formating ...");
37-
Serial.flush();
3837

3938
// Format without erase
4039
// Pass true for full external flash erasing (take time)
4140
InternalFS.format(true);
4241

4342
Serial.println("Done");
44-
Serial.flush();
4543
}
4644

4745
// the loop function runs over and over again forever

0 commit comments

Comments
 (0)