File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -382,7 +382,7 @@ where
382
382
}
383
383
384
384
async fn read_dma ( & mut self , words : & mut [ W ] ) -> Result < ( ) , Error > {
385
- let result = self . start_dma_read ( words) ?. await ;
385
+ let result = self . start_dma_read ( words) ?. to_async ( ) . await ;
386
386
self . finish_transfer ( result)
387
387
}
388
388
}
@@ -416,7 +416,7 @@ where
416
416
}
417
417
418
418
async fn write_dma ( & mut self , words : & [ W ] ) -> Result < ( ) , Error > {
419
- let result = self . start_dma_write ( words) ?. await ;
419
+ let result = self . start_dma_write ( words) ?. to_async ( ) . await ;
420
420
self . finish_transfer ( result)
421
421
}
422
422
}
@@ -464,7 +464,7 @@ where
464
464
write : & [ W ] ,
465
465
) -> Result < ( ) , Error > {
466
466
let ( tx, rx) = self . start_dma_duplex_transfer ( read, write) ?;
467
-
467
+ let ( tx , rx ) = ( tx . to_async ( ) , rx . to_async ( ) ) ;
468
468
let result = tx. await . and ( rx. await ) ;
469
469
470
470
self . finish_transfer ( result)
You can’t perform that action at this time.
0 commit comments