mirror of
https://github.com/trussed-dev/apdu-dispatch.git
synced 2026-06-20 04:16:15 -07:00
substitute all uses of semihosting and funnel with logging crate
This commit is contained in:
committed by
Nicolas Stalder
parent
d55bdbd740
commit
97bf3a9989
@@ -22,5 +22,12 @@ iso14443 = {path = "../iso14443"}
|
||||
default = []
|
||||
std = ["logging/std"]
|
||||
|
||||
log-all = []
|
||||
log-none = []
|
||||
log-info = []
|
||||
log-debug = []
|
||||
log-warn = []
|
||||
log-error = []
|
||||
|
||||
[patch.crates-io]
|
||||
heapless = { git = "https://github.com/nicolas-solokeys/heapless", branch = "bytebuf" }
|
||||
|
||||
+2
-2
@@ -25,7 +25,7 @@ pub enum InterfaceType{
|
||||
Contactless,
|
||||
}
|
||||
|
||||
use logging;
|
||||
use crate::logger::info;
|
||||
|
||||
use interchange::Responder;
|
||||
|
||||
@@ -206,7 +206,7 @@ impl ApduDispatch
|
||||
Ok(AppletResponse::Defer) => {}
|
||||
|
||||
Err(status) => {
|
||||
logging::info!("applet error").ok();
|
||||
info!("applet error").ok();
|
||||
use InterfaceType::*;
|
||||
match self.current_interface {
|
||||
Contactless =>
|
||||
|
||||
@@ -2,3 +2,5 @@
|
||||
|
||||
pub mod applet;
|
||||
pub mod dispatch;
|
||||
|
||||
logging::add!(logger);
|
||||
Reference in New Issue
Block a user