Merge pull request #16920 from maribu/cpu/avr8_common/bugfix

cpu/{atxmega,atmega_common}: fix invalid use of PSTR()
This commit is contained in:
benpicco 2021-10-01 17:22:29 +02:00 committed by GitHub
commit badadd1337
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 9 deletions

View File

@ -26,8 +26,6 @@
* @} * @}
*/ */
#include <avr/pgmspace.h>
#include "board.h" #include "board.h"
#include "cpu.h" #include "cpu.h"
#include "panic.h" #include "panic.h"
@ -100,8 +98,7 @@ ISR(BADISR_vect)
LED_PANIC; LED_PANIC;
#endif #endif
core_panic(PANIC_GENERAL_ERROR, PSTR("FATAL ERROR: BADISR_vect called, unprocessed Interrupt.\n" core_panic(PANIC_GENERAL_ERROR, "BADISR");
"STOP Execution.\n"));
} }
#if defined(CPU_ATMEGA128RFA1) || defined (CPU_ATMEGA256RFR2) #if defined(CPU_ATMEGA128RFA1) || defined (CPU_ATMEGA256RFR2)

View File

@ -18,8 +18,6 @@
* @} * @}
*/ */
#include <avr/pgmspace.h>
#include "cpu.h" #include "cpu.h"
#include "cpu_clock.h" #include "cpu_clock.h"
#include "cpu_pm.h" #include "cpu_pm.h"
@ -121,7 +119,5 @@ ISR(BADISR_vect)
LED_PANIC; LED_PANIC;
#endif #endif
core_panic(PANIC_GENERAL_ERROR, core_panic(PANIC_GENERAL_ERROR, "BADISR");
PSTR("FATAL ERROR: BADISR_vect called, unprocessed Interrupt.\n"
"STOP Execution.\n"));
} }