Skip to content

Commit 19fa1b7

Browse files
committed
Cast F() to __FlashStringHelper*
1 parent cbb3466 commit 19fa1b7

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Diff for: cores/arduino/Arduino.h

+3-7
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,15 @@
2020
#ifndef Arduino_h
2121
#define Arduino_h
2222

23-
#ifdef __PGMSPACE_H_
24-
#undef __PGMSPACE_H_
25-
#endif
26-
2723
#include "api/deprecated-avr-comp/avr/pgmspace.h"
2824
#include <avr/io.h>
2925
#include <avr/interrupt.h>
3026

3127
#include "api/ArduinoAPI.h"
32-
/*
28+
3329
#undef F
34-
#define F(str) (str)
35-
*/
30+
#define F(str) (const __FlashStringHelper*)(str)
31+
3632
#ifdef __cplusplus
3733
extern "C"{
3834
#endif

0 commit comments

Comments
 (0)