A question relating to ISRRX.BAS module

General discussion relating to the library modules supplied with the compiler

Moderators: David Barker, Jerry Messina

Post Reply
Ralph
Posts: 15
Joined: Tue Apr 01, 2008 3:15 am
Location: Melbourne, Australia

A question relating to ISRRX.BAS module

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 :oops:

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

User avatar
David Barker
Swordfish Developer
Posts: 1194
Joined: Tue Oct 03, 2006 7:01 pm
Location: Saltburn by the Sea, UK
Contact:

Re: A question relating to ISRRX.BAS module

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

Re: A question relating to ISRRX.BAS module

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.

Post Reply