Skip to content

Commit

Permalink
Merge branch 'master' of ssh://git.code.sf.net/p/owfs/code
Browse files Browse the repository at this point in the history
Adding mock changes to these presence changes
  • Loading branch information
alfille committed Mar 18, 2015
2 parents 07d1beb + fe75dd0 commit 865b689
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions module/owlib/src/c/ow_read.c
Expand Up @@ -365,8 +365,10 @@ static SIZE_OR_ERROR FS_r_local(struct one_wire_query *owq)
case adapter_mock:
/* Special case for "mock" adapter */
if ( GOOD( OWQ_Cache_Get(owq)) ) { // cached
LEVEL_DEBUG("Mock value in cache");
return 0;
}
LEVEL_DEBUG("Mock value NOT in cache");
return FS_read_fake(owq);
default:
break ;
Expand Down

0 comments on commit 865b689

Please sign in to comment.