Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tudelft-quadrupel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computer and Embedded Systems Engineering
Embedded Systems Lab
tudelft-quadrupel
Commits
c2085cdf
Verified
Commit
c2085cdf
authored
Mar 7, 2023
by
Jonathan Brouwer
Browse files
Options
Downloads
Patches
Plain Diff
Fix clippy
parent
576a4592
No related branches found
No related tags found
4 merge requests
!11
Resolve "Reading MPU over I2C hangs"
,
!10
Resolve "Reading MPU over I2C hangs": Attempt 4
,
!9
Resolve "Reading MPU over I2C hangs"
,
!8
Resolve "Template code hangs on reading yaw, pitch, and roll."
Pipeline
#818215
passed
Mar 7, 2023
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/twi.rs
+2
-2
2 additions, 2 deletions
src/twi.rs
with
2 additions
and
2 deletions
src/twi.rs
+
2
−
2
View file @
c2085cdf
...
...
@@ -16,7 +16,7 @@ pub struct TwiWrapper {
impl
embedded_hal
::
blocking
::
i2c
::
Write
for
TwiWrapper
{
type
Error
=
Error
;
fn
write
<
'w
>
(
&
mut
self
,
addr
:
u8
,
bytes
:
&
'w
[
u8
])
->
Result
<
(),
Error
>
{
fn
write
(
&
mut
self
,
addr
:
u8
,
bytes
:
&
[
u8
])
->
Result
<
(),
Error
>
{
cortex_m
::
interrupt
::
free
(|
_
|
self
.twi
.write
(
addr
,
bytes
))
}
}
...
...
@@ -24,7 +24,7 @@ impl embedded_hal::blocking::i2c::Write for TwiWrapper {
impl
embedded_hal
::
blocking
::
i2c
::
Read
for
TwiWrapper
{
type
Error
=
Error
;
fn
read
<
'w
>
(
&
mut
self
,
addr
:
u8
,
bytes
:
&
'w
mut
[
u8
])
->
Result
<
(),
Error
>
{
fn
read
(
&
mut
self
,
addr
:
u8
,
bytes
:
&
mut
[
u8
])
->
Result
<
(),
Error
>
{
cortex_m
::
interrupt
::
free
(|
_
|
self
.twi
.read
(
addr
,
bytes
))
}
}
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment