Skip to content

Commit

Permalink
Fix warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
kareltucek committed Dec 20, 2024
1 parent e5b9432 commit 8b87d21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion right/src/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static void showString(const char* str) {

static void showFloat(float f) {
#ifdef __ZEPHYR__
Log("%i: %f", CurrentWatch, f);
Log("%i: %f", CurrentWatch, (double)f);
#else
SegmentDisplay_SetFloat(f, SegmentDisplaySlot_Debug);
#endif
Expand Down
5 changes: 5 additions & 0 deletions right/src/usb_interfaces/usb_interface_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "usb_report_updater.h"
#include <string.h>
#include "event_scheduler.h"
#include "shared/attributes.h"

#ifdef __ZEPHYR__
#include "usb/usb_compatibility.h"
Expand All @@ -11,7 +12,11 @@
#include "usb_descriptors/usb_descriptor_mouse_report.h"

static usb_mouse_report_t usbMouseReports[2];

#ifndef __ZEPHYR__
static uint8_t usbMouseFeatBuffer[USB_MOUSE_FEAT_REPORT_LENGTH];
#endif

usb_hid_protocol_t usbMouseProtocol;
uint32_t UsbMouseActionCounter;
usb_mouse_report_t* ActiveUsbMouseReport = usbMouseReports;
Expand Down

0 comments on commit 8b87d21

Please sign in to comment.