substitute all uses of semihosting and funnel with logging crate

This commit is contained in:
Conor Patrick
2020-08-23 14:36:29 +02:00
committed by Nicolas Stalder
parent d55bdbd740
commit 97bf3a9989
3 changed files with 11 additions and 2 deletions
+7
View File
@@ -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
View File
@@ -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
View File
@@ -2,3 +2,5 @@
pub mod applet;
pub mod dispatch;
logging::add!(logger);