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 7 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
 
74
 
75
 pfnISR_Handler install_isr(IRQn_Type irq, pfnISR_Handler newHandler) {
75
 pfnISR_Handler install_isr(IRQn_Type irq, pfnISR_Handler newHandler) {
76
   // Get the address of the relocated table
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
   // Disable global interrupts
79
   // Disable global interrupts
80
   CRITICAL_SECTION_START;
80
   CRITICAL_SECTION_START;

Loading…
Cancel
Save