Fixed some initialisation issues
git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@237 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
@@ -153,7 +153,7 @@ ErrorStatus MAX5715Channel_construct(struct MAX5715_DAC* self, struct MAX5715* p
|
||||
if (id < MAX5715_NUMBER_OF_DACS)
|
||||
{
|
||||
// Check that the parent has no channel already initialized on that ID
|
||||
if (!parent->dac[id].initialized)
|
||||
if ((!parent->dac[id].initialized) && (parent->initialized))
|
||||
{
|
||||
if (!self->initialized)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user