Commit b2bfd09
authored
fix mcman detection of unformatted card insertion
Before this change, every time mcdetectcard was called from libmc over an unformatted card, the mcsync return value was -2
It should have been -2 if a new unformatted card was inserted since las call, and 0 if the same card remains plugged1 parent ba63930 commit b2bfd09
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
917 | 917 | | |
918 | 918 | | |
919 | 919 | | |
920 | | - | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
921 | 924 | | |
922 | 925 | | |
923 | 926 | | |
| |||
928 | 931 | | |
929 | 932 | | |
930 | 933 | | |
931 | | - | |
| 934 | + | |
932 | 935 | | |
933 | 936 | | |
934 | 937 | | |
| |||
0 commit comments