General discussion relating to the library modules supplied with the compiler
Moderators: David Barker, Jerry Messina
-
Ralph
- Posts: 15
- Joined: Tue Apr 01, 2008 3:15 am
- Location: Melbourne, Australia
Post
by Ralph » Sat Jan 24, 2015 11:58 am
I have recently been revisiting a project from a while back and have noticed in my ISRRX.BAS module that two lines have been commented out in the DataAvailable function:
Code: Select all
{
****************************************************************************
* Name : DataAvailable *
* Purpose : Check to see if there is data in the buffer *
****************************************************************************
}
Public Function DataAvailable() As Boolean
' Disable(OnRX)
Result = FIndexIn <> FIndexOut
' Enable(OnRX)
End Function
Is this by design, or have I been fiddling in places where I shouldn't have
The ISRRX.BAS module is version 1.1 dated 31/3/2006, and I'm running SF 2.2.2.5. Come to think of it, is there a master list somewhere of all supplied modules, just so I can ensure I have the latest versions of each.
Cheers,
Ralph Parkhurst,
Melbourne
-
David Barker
- Swordfish Developer
- Posts: 1214
- Joined: Tue Oct 03, 2006 7:01 pm
- Location: Saltburn by the Sea, UK
-
Contact:
Post
by David Barker » Sat Jan 24, 2015 12:07 pm
That's a very good question. I disabled I think, but it was some time ago! Anyway, my thinking is that it's a read only operation - the actual state of the ISR module would not be changed by executing "DataAvailable()".
-
Ralph
- Posts: 15
- Joined: Tue Apr 01, 2008 3:15 am
- Location: Melbourne, Australia
Post
by Ralph » Sat Jan 24, 2015 3:01 pm
Many thanks David for the fast reply. And it is comforting to know that I was probably not the culprit - sometimes I have been known to fiddle with things whilst debugging, as I find I can learn more that way. The module seems to be working just fine, so I'll leave it as is.
Cheers,
Ralph.