Skip to content

Conversation

@ClemensElflein
Copy link
Member

No description provided.

@ClemensElflein ClemensElflein requested a review from rovo89 June 24, 2025 00:38
Comment on lines +13 to +15
[submodule "ext/mongoose"]
path = ext/mongoose
url = https://github.com/cesanta/mongoose.git
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Submodules vs. FetchContent - not sure when to use which?

Comment on lines +6 to +9
// clang-format off
#include "ch.h"
#include "hal.h"
// clang-format on
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would it be without the exception? I think it should be <ch.h> and <hal.h> because they will never be found locally.

if (mg_match(hm->method, mg_str("POST"), NULL)) {
if (mg_match(hm->uri, mg_str("/api/robot_type"), NULL)) {
File robot_type;
robot_type.open("robot_type.txt");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned in Discord, I think it might be more future-proof to use JSON everywhere, for example to have subtypes like Worx with or without knob.

/* Define LWIP_ERRNO_STDINCLUDE if you want to include <errno.h> here */
#ifdef LWIP_ERRNO_STDINCLUDE
#include <errno.h>
#include <sys/errno.h>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks strange and generally I wouldn't modify the included projects... but I don't want to spend time trying to figure out a better solution. I see you already tried.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants