@@ -118,7 +118,8 @@ NfcCommand felica_poller_state_handler_auth_internal(FelicaPoller* instance) {
118
118
blocks [1 ] = FELICA_BLOCK_INDEX_WCNT ;
119
119
blocks [2 ] = FELICA_BLOCK_INDEX_MAC_A ;
120
120
FelicaPollerReadCommandResponse * rx_resp ;
121
- error = felica_poller_read_blocks (instance , sizeof (blocks ), blocks , & rx_resp );
121
+ error = felica_poller_read_blocks (
122
+ instance , sizeof (blocks ), blocks , FELICA_SERVICE_RO_ACCESS , & rx_resp );
122
123
if (error != FelicaErrorNone || rx_resp -> SF1 != 0 || rx_resp -> SF2 != 0 ) break ;
123
124
124
125
if (felica_check_mac (
@@ -174,7 +175,7 @@ NfcCommand felica_poller_state_handler_auth_external(FelicaPoller* instance) {
174
175
if (error != FelicaErrorNone || tx_resp -> SF1 != 0 || tx_resp -> SF2 != 0 ) break ;
175
176
176
177
FelicaPollerReadCommandResponse * rx_resp ;
177
- error = felica_poller_read_blocks (instance , 1 , blocks , & rx_resp );
178
+ error = felica_poller_read_blocks (instance , 1 , blocks , FELICA_SERVICE_RO_ACCESS , & rx_resp );
178
179
if (error != FelicaErrorNone || rx_resp -> SF1 != 0 || rx_resp -> SF2 != 0 ) break ;
179
180
180
181
instance -> data -> data .fs .state .SF1 = 0 ;
@@ -203,7 +204,8 @@ NfcCommand felica_poller_state_handler_read_blocks(FelicaPoller* instance) {
203
204
}
204
205
205
206
FelicaPollerReadCommandResponse * response ;
206
- FelicaError error = felica_poller_read_blocks (instance , block_count , block_list , & response );
207
+ FelicaError error = felica_poller_read_blocks (
208
+ instance , block_count , block_list , FELICA_SERVICE_RO_ACCESS , & response );
207
209
if (error == FelicaErrorNone ) {
208
210
block_count = (response -> SF1 == 0 ) ? response -> block_count : block_count ;
209
211
uint8_t * data_ptr =
0 commit comments