mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-29 04:18:54 +03:00
Add a typemap to represent the AVRPART signature as Python bytes.
This commit is contained in:
@@ -168,6 +168,10 @@ typedef struct avrmem AVRMEM;
|
||||
// libavrdude itself, so only map things to the Python level that are
|
||||
// needed there.
|
||||
|
||||
%typemap(out) unsigned char signature[3] {
|
||||
$result = PyBytes_FromStringAndSize($1, 3);
|
||||
}
|
||||
|
||||
typedef struct avrpart {
|
||||
const char * desc; /* long part name */
|
||||
const char * id; /* short part name */
|
||||
|
||||
Reference in New Issue
Block a user