Skip to content

Commit

Permalink
Revert "Add sys_info package"
Browse files Browse the repository at this point in the history
This reverts commit e9f59e6.
  • Loading branch information
Chi-EEE committed Jan 7, 2024
1 parent e9f59e6 commit 94c71f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 30 deletions.
20 changes: 0 additions & 20 deletions app/raspberry_pi/repository/packages/s/sys_info/xmake.lua

This file was deleted.

4 changes: 1 addition & 3 deletions app/raspberry_pi/src/car/display/CarConsole.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
#include <ftxui/dom/elements.hpp>
#include <ftxui/component/loop.hpp> // ftxui::Loop

#include <sys_info/ProcessInfo.h>

#include "../system/CarSystem.h"

using namespace car::system;
Expand Down Expand Up @@ -81,6 +79,7 @@ namespace car::display {
if (debounce) return;
debounce = true;
button_pressed = !button_pressed;
std::cout << "Button pressed: " << button_pressed << std::endl;
if (button_pressed) {
main_button_text = "Connecting...";
this->car_system->start();
Expand All @@ -93,7 +92,6 @@ namespace car::display {
}
debounce = false;
};

auto main_button = Button(&main_button_text, main_button_lambda, animated_button_style);

auto exit = screen.ExitLoopClosure();
Expand Down
10 changes: 3 additions & 7 deletions app/raspberry_pi/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ add_requires("nlohmann_json")
add_requires("spdlog")
add_requires("fmt")

-- Get System Info
add_requires("sys_info")
add_requires("imath")

if is_plat("linux", "macosx") then
-- For the SunFounder Car
Expand All @@ -33,15 +32,12 @@ target("raspberry_pi")
set_kind("binary")
set_license("LGPL-2.1")

add_packages("nlohmann_json")
add_packages("spdlog")
add_packages("fmt")

add_packages("nlohmann_json")
add_packages("imath")
add_packages("tl_expected")

-- Get System Info
add_packages("sys_info")

-- Messaging System
add_packages("ixwebsocket")
add_packages("nod")
Expand Down

0 comments on commit 94c71f6

Please sign in to comment.