Commit e60d8e1 1 parent 57b2bc4 commit e60d8e1 Copy full SHA for e60d8e1
File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -114,10 +114,10 @@ impl JsDevkit {
114
114
}
115
115
116
116
#[ napi]
117
- pub fn read_memory ( & self , well : u8 , bytes : u32 ) -> Result < Vec < u8 > > {
117
+ pub fn read_memory ( & self , well : u8 , bytes : u32 ) -> Result < Buffer > {
118
118
let mut buffer = vec ! [ 0 ; bytes as usize ] ;
119
119
self . plinth . read_memory ( well. into ( ) , & mut buffer) . map_err ( |e| Error :: from_reason ( e) ) ?;
120
- Ok ( buffer)
120
+ Ok ( Buffer :: from ( buffer) )
121
121
}
122
122
123
123
#[ napi]
Original file line number Diff line number Diff line change @@ -332,7 +332,6 @@ pub struct Prototype {
332
332
333
333
impl Plinth for Prototype {
334
334
fn display_image ( & self , well : usize , image : Vec < u8 > ) {
335
- println ! ( "image vec size is {}" , image. len( ) ) ;
336
335
let pin_assignments = self . wyldcard_wells [ well] ;
337
336
338
337
let gpio = Gpio :: new ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments