This commit is contained in:
hathach committed 2018-11-02 19:57:34 +07:00
1 parent a265ec7b81
commit 9a4d94f485
4 files changed
+9 -4

No files matched your search

+8
View File
@@ -56,6 +56,12 @@ extern uint32_t __StackLimit[];
extern "C"
{
void HardFault_Handler(void)
{
// reset on hardfault
NVIC_SystemReset();
}
int cprintf(const char * format, ...)
{
char buf[256];
@@ -65,6 +71,8 @@ int cprintf(const char * format, ...)
va_start(ap, format);
len = vsnprintf(buf, 256, format, ap);
// SEGGER_SYSVIEW_Print(buf);
Serial.write(buf, len);
va_end(ap);
@@ -51,6 +51,7 @@ void setup()
Bluefruit.configPrphBandwidth(BANDWIDTH_MAX);
Bluefruit.begin();
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
Bluefruit.setTxPower(4);
Bluefruit.setName("Bluefruit52");
@@ -34,14 +34,12 @@ void setup()
ExternalFS.begin();
Serial.print("Formating ...");
Serial.flush();
// Format without erase
// Pass true for full external flash erasing (take time)
ExternalFS.format(false);
Serial.println("Done");
Serial.flush();
}
// the loop function runs over and over again forever
@@ -34,14 +34,12 @@ void setup()
InternalFS.begin();
Serial.print("Formating ...");
Serial.flush();
// Format without erase
// Pass true for full external flash erasing (take time)
InternalFS.format(true);
Serial.println("Done");
Serial.flush();
}
// the loop function runs over and over again forever