This commit is contained in:
dreamsourcelabTAI 2024-05-23 15:59:10 +08:00
commit 33c2c8fdfc
4 changed files with 5 additions and 1 deletions

View File

@ -668,6 +668,8 @@ install(FILES DSView/icons/logo.svg DESTINATION share/pixmaps RENAME dsview.svg)
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
install(FILES DSView/DSView.desktop DESTINATION /usr/share/applications RENAME dsview.desktop)
add_compile_definitions(_DEFAULT_SOURCE)
if(IS_DIRECTORY /usr/lib/udev/rules.d)
install(FILES DSView/DreamSourceLab.rules DESTINATION /usr/lib/udev/rules.d RENAME 60-dreamsourcelab.rules)
elseif(IS_DIRECTORY /lib/udev/rules.d)

View File

@ -24,6 +24,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <strings.h>
#include "../log.h"
#include <stdlib.h>

View File

@ -21,6 +21,7 @@
#include "libsigrok-internal.h"
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <stdio.h>
#include "log.h"

View File

@ -231,7 +231,7 @@ class Decoder(srd.Decoder):
def handle_cmd24(self):
# CMD24: WRITE_BLOCK
self.putc(Ann.CMD24, 'Write a block to address {$}', self.arg))
self.putc(Ann.CMD24, 'Write a block to address {$}', self.arg)
self.is_cmd24 = True
self.state = 'GET RESPONSE R1'