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".
pull/1/head
rafaljot 7 years ago
committed by GitHub
parent
commit
778e4e4c23
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Marlin/src/HAL/HAL_DUE/InterruptVectors_Due.cpp

2
Marlin/src/HAL/HAL_DUE/InterruptVectors_Due.cpp

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

Loading…
Cancel
Save