Browse Source

Update InterruptVectors_Due.cpp

const pfnISR_Handler *isrtab = get_relocated_table_addr();

What compiler do you use? Arduino 1.8.5 can't compile this "const".
rafaljot 6 years ago
parent
commit
778e4e4c23
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/HAL/HAL_DUE/InterruptVectors_Due.cpp

+ 1
- 1
Marlin/src/HAL/HAL_DUE/InterruptVectors_Due.cpp View File

@@ -74,7 +74,7 @@ static pfnISR_Handler* get_relocated_table_addr(void) {
74 74
 
75 75
 pfnISR_Handler install_isr(IRQn_Type irq, pfnISR_Handler newHandler) {
76 76
   // Get the address of the relocated table
77
-  const pfnISR_Handler *isrtab = get_relocated_table_addr();
77
+  pfnISR_Handler *isrtab = get_relocated_table_addr();
78 78
 
79 79
   // Disable global interrupts
80 80
   CRITICAL_SECTION_START;

Loading…
Cancel
Save