Skip to content

Commit 618cb9f

Browse files
committed
Give PolicyOverride an env and say why Emulation has none
1 parent 5d8655d commit 618cb9f

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/platformio-build-check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ jobs:
116116
board: Core
117117
framework: Arduino
118118
espressif32: latest
119+
- example: NFCA_PolicyOverride
120+
board: Core
121+
framework: Arduino
122+
espressif32: latest
119123
# NFCA Detect on M5Dial with builtin WS1850S
120124
- example: NFCA_Detect
121125
board: Dial_Builtin

platformio.ini

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,20 @@ build_src_filter = +<*> -<.git/> -<.svn/>
591591
build_flags = ${option_release.build_flags}
592592
-D USING_UNIT_RFID2
593593

594+
;PolicyOverride
595+
[env:NFCA_PolicyOverride_Core_Arduino_latest]
596+
extends=Core, option_release, arduino_latest
597+
build_src_filter = +<*> -<.git/> -<.svn/>
598+
+<../examples/UnitUnified/NFCA/PolicyOverride/>
599+
-<../examples/UnitUnified/NFCA/PolicyOverride/build/>
600+
-<../examples/UnitUnified/NFCA/PolicyOverride/managed_components/>
601+
build_flags = ${option_release.build_flags}
602+
-D USING_UNIT_RFID2
603+
604+
; NFCA Emulation has no env here on purpose: the example refuses WS1850S at compile time
605+
; (#error "Emulation is NOT supported on UnitRFID2 / M5Dial Builtin"), so it only builds
606+
; against UnitNFC / CapCC1101, which this library does not drive.
607+
594608

595609
;;;
596610
; [env:NFCA_NDEF_Dial_Arduino_latest]

0 commit comments

Comments
 (0)