Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Beam Positoning Monitor - Software
Commits
3c94f273
Commit
3c94f273
authored
Apr 26, 2016
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chips/sm_ch_si57x.c: check for division by 0
parent
9bdaa06f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
sm_ch_si57x.c
src/sm_io/chips/sm_ch_si57x.c
+2
-0
No files found.
src/sm_io/chips/sm_ch_si57x.c
View file @
3c94f273
...
...
@@ -169,6 +169,8 @@ smch_err_e smch_si57x_set_freq (smch_si57x_t *self, double frequency)
assert
(
self
);
smch_err_e
err
=
SMCH_SUCCESS
;
ASSERT_TEST
(
frequency
>
0
,
"Invalid frequency (0 Hz)"
,
err_exit
);
DBE_DEBUG
(
DBG_SM_CH
|
DBG_LVL_TRACE
,
"[sm_ch:si57x_set_freq] Configuring "
"frequency to %f Hz
\n
"
,
frequency
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment