diff options
author | Tim O'Shea | 2012-11-30 22:31:43 -0800 |
---|---|---|
committer | Johnathan Corgan | 2012-11-30 22:41:46 -0800 |
commit | 6cc818260128df57c51a41e4e6aa459de5faf4fe (patch) | |
tree | b79aaa3f6c584c13bf203406367c756a98c94bdf /grc/python | |
parent | 4478cb86a5dc9fccf66c2cdd5806419b70c3837e (diff) | |
download | gnuradio-6cc818260128df57c51a41e4e6aa459de5faf4fe.tar.gz gnuradio-6cc818260128df57c51a41e4e6aa459de5faf4fe.tar.bz2 gnuradio-6cc818260128df57c51a41e4e6aa459de5faf4fe.zip |
core: gr_blocks can now have only message ports with no general_work()
* msg only blocks now get thread context
* added blocking msg queue delete call
* added gr_message_strobe block
* added grc definitions for message_debug, message_strobe, pdu_to_tagged_stream, tagged_stream_to_pdu.
* allow message fan-in connections in GRC
Diffstat (limited to 'grc/python')
-rw-r--r-- | grc/python/Constants.py | 2 | ||||
-rw-r--r-- | grc/python/Port.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/grc/python/Constants.py b/grc/python/Constants.py index 09c308196..b8dc9a96a 100644 --- a/grc/python/Constants.py +++ b/grc/python/Constants.py @@ -58,7 +58,7 @@ CORE_TYPES = ( #name, key, sizeof, color ('Integer 16', 's16', 2, '#FFFF66'), ('Integer 8', 's8', 1, '#FF66FF'), ('Message Queue', 'msg', 0, '#777777'), - ('Async Message', 'message', 0, '#777777'), + ('Async Message', 'message', 0, '#C0C0C0'), ('Wildcard', '', 0, '#FFFFFF'), ) diff --git a/grc/python/Port.py b/grc/python/Port.py index 9f8b50d05..738a33ba7 100644 --- a/grc/python/Port.py +++ b/grc/python/Port.py @@ -116,7 +116,7 @@ class Port(_Port, _GUIPort): _Port.validate(self) if not self.get_enabled_connections() and not self.get_optional(): self.add_error_message('Port is not connected.') - if not self.is_source() and len(self.get_enabled_connections()) > 1: + if not self.is_source() and (not self.get_type() == "message") and len(self.get_enabled_connections()) > 1: self.add_error_message('Port has too many connections.') #message port logic if self.get_type() == 'msg': |