fix flake, mark which packages work
This commit is contained in:
parent
75e2df41fe
commit
85d4ed5a3b
5 changed files with 26 additions and 29 deletions
|
@ -129,7 +129,7 @@ bool log_command(struct Command command) {
|
|||
break;
|
||||
}
|
||||
case COMMAND_TAG_GLOBAL_BRIGHTNESS: {
|
||||
Brightness brightness = sp_cmd_brightness_global_get(command.data.global_brightness);
|
||||
Brightness brightness = sp_cmd_brightness_global_get_brightness(command.data.global_brightness);
|
||||
printf("-> GlobalBrightnessCommand with params: brightness=%hu\n", brightness);
|
||||
break;
|
||||
}
|
||||
|
@ -191,7 +191,7 @@ int main(int argc, char **argv) {
|
|||
continue;
|
||||
}
|
||||
|
||||
struct Header *header = sp_packet_get_header(packet);
|
||||
struct Header *header = sp_packet_get_header_mut(packet);
|
||||
|
||||
ByteSlice payload = sp_packet_get_payload(packet);
|
||||
printf("Received packet: cc=%d, a=%d, b=%d, c=%d, d=%d, payload=%p (len %zu)\n",
|
||||
|
|
|
@ -23,8 +23,6 @@ void sock_init() {
|
|||
|
||||
/// TODO: all of this for sleeping n ms? There should be a better way!
|
||||
int msleep(long msec) {
|
||||
int res;
|
||||
|
||||
if (msec < 0) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
|
@ -35,6 +33,7 @@ int msleep(long msec) {
|
|||
.tv_nsec = (msec % 1000) * 1000000,
|
||||
};
|
||||
|
||||
int res;
|
||||
do {
|
||||
res = nanosleep(&ts, &ts);
|
||||
} while (res && errno == EINTR);
|
||||
|
|
|
@ -15,7 +15,7 @@ int main(void) {
|
|||
if (packet == NULL)
|
||||
return 1;
|
||||
|
||||
Header *header = sp_packet_get_header(packet);
|
||||
Header *header = sp_packet_get_header_mut(packet);
|
||||
printf("[%d, %d, %d, %d, %d]\n", header->command_code, header->a, header->b, header->c, header->d);
|
||||
|
||||
sp_udp_send_packet(sock, packet);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue