Skip to content

Commit

Permalink
Update InterruptVectors_Due.cpp
Browse files Browse the repository at this point in the history
const pfnISR_Handler *isrtab = get_relocated_table_addr();

What compiler do you use? Arduino 1.8.5 can't compile this "const".
  • Loading branch information
rafaljot authored Oct 31, 2017
1 parent cae8703 commit 778e4e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/HAL/HAL_DUE/InterruptVectors_Due.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 778e4e4

Please sign in to comment.