File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,23 @@ impl Comm {
185
185
// This is private. Users should call reply to set the satus word and
186
186
// transmit the response.
187
187
fn apdu_send ( & mut self ) {
188
+ #[ cfg( any( target_os = "stax" , target_os = "flex" , feature = "nano_nbgl" ) ) ]
189
+ {
190
+ let mut buffer: [ u8 ; 273 ] = [ 0 ; 273 ] ;
191
+ let status = sys_seph:: io_rx ( & mut buffer, false ) ;
192
+ if status > 0 {
193
+ let packet_type = seph:: PacketTypes :: from ( buffer[ 0 ] ) ;
194
+ let event = seph:: Events :: from ( buffer[ 1 ] ) ;
195
+ match ( packet_type, event) {
196
+ ( seph:: PacketTypes :: PacketTypeSeph , seph:: Events :: TickerEvent ) => {
197
+ unsafe {
198
+ ux_process_ticker_event ( ) ;
199
+ }
200
+ }
201
+ ( _, _) => { }
202
+ }
203
+ }
204
+ }
188
205
if self . tx != 0 {
189
206
sys_seph:: io_tx ( self . apdu_type , & self . apdu_buffer , self . tx ) ;
190
207
self . tx = 0 ;
You can’t perform that action at this time.
0 commit comments