Skip to content

Commit 69a9002

Browse files
authored
Cleanup compiler warnings (#27)
1 parent d19df07 commit 69a9002

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

cores/nRF5/utils/debug_utils.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ void Hardfault_handler_cpp( uint32_t *p_stack_address )
3939
{
4040
exception_frame* ef = (exception_frame*)p_stack_address;
4141

42-
Serial.printf("Unhandled exception 0x%08x ", SCB->ICSR & SCB_ICSR_VECTACTIVE_Msk);
43-
Serial.printf(", exception sp 0x%08x\n", (uint32_t)p_stack_address);
44-
Serial.printf("R0: 0x%08x, , R1: 0x%08x , R2: 0x%08x, R3: 0x%08x, R12: 0x%08x\n", ef->r0, ef->r1, ef->r2, ef->r3, ef->r12);
45-
Serial.printf("LR: 0x%08x, PC: 0x%08x, PSR: 0x%08x\n", ef->lr, ef->pc, ef->psr);
42+
Serial.printf("Unhandled exception 0x%08lx ", SCB->ICSR & SCB_ICSR_VECTACTIVE_Msk);
43+
Serial.printf(", exception sp 0x%08lx\n", (uint32_t)p_stack_address);
44+
Serial.printf("R0: 0x%08lx, , R1: 0x%08lx , R2: 0x%08lx, R3: 0x%08lx, R12: 0x%08lx\n",
45+
ef->r0, ef->r1, ef->r2, ef->r3, ef->r12);
46+
Serial.printf("LR: 0x%08lx, PC: 0x%08lx, PSR: 0x%08lx\n", ef->lr, ef->pc, ef->psr);
4647

4748
NVIC_SystemReset();
4849
}

libraries/n-able/examples/BLE_Advertiser/BLE_Advertiser.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void loop() {
3434

3535
// Start advertising the data
3636
pAdvertising->start(5);
37-
Serial.printf("Advertising count = %d\n", count);
37+
Serial.printf("Advertising count = %lu\n", count);
3838
count++;
3939
}
4040

libraries/n-able/examples/FreeRTOS/FreeRTOS.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void BlinkTask(void *pvParameters) {
3939

4040
for (;;) { // A Task shall never return or exit.
4141
digitalToggle(LED_BUILTIN);
42-
Serial.printf("Free heap: %u\n", RTOS.getFreeHeap());
42+
Serial.printf("Free heap: %lu\n", RTOS.getFreeHeap());
4343
delay(500);
4444
}
4545
}

0 commit comments

Comments
 (0)