Skip to content

Instantly share code, notes, and snippets.

@Elwell
Created May 8, 2013 14:42
Show Gist options
  • Save Elwell/5540913 to your computer and use it in GitHub Desktop.
Save Elwell/5540913 to your computer and use it in GitHub Desktop.
bugfix for owfs
diff -u -r1.220 ow_parsename.c
--- ../../..//owlib/src/c/ow_parsename.c 24 Jul 2012 01:47:31 -0000 1.220
+++ ../../..//owlib/src/c/ow_parsename.c 8 May 2013 14:39:46 -0000
@@ -343,11 +343,11 @@
return parse_nonreal;
} else if (strcasecmp(pathnow, "text") == 0) {
- pn->state |= ePS_json;
+ pn->state |= ePS_text;
return parse_first;
} else if (strcasecmp(pathnow, "json") == 0) {
- pn->state |= ePS_text;
+ pn->state |= ePS_json;
return parse_first;
} else if (strcasecmp(pathnow, "uncached") == 0) {
@Elwell
Copy link
Author

Elwell commented May 8, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment